@progress/kendo-angular-editor 2.5.0-dev.202111291334 → 2.5.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.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- System.register("@progress/kendo-angular-editor",["@progress/kendo-editor-common","tslib","@angular/common","@angular/forms","@progress/kendo-angular-toolbar","@angular/core","@progress/kendo-angular-dropdowns","@progress/kendo-angular-dialog","@progress/kendo-angular-buttons","@progress/kendo-angular-inputs","rxjs","rxjs/operators","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-popup"],function(r){var a,l,d,s,c,p,u,m,h,f,g,_,b,v,y,C;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){s=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){m=t(e)},function(e){h=t(e)},function(e){f=t(e)},function(e){g=t(e)},function(e){_=t(e)},function(e){b=t(e)},function(e){v=t(e)},function(e){y=t(e)},function(e){C=t(e)}],execute:function(){function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o,i;o=[function(e,t){e.exports=l},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),o=o(10),o=(n=o.LocalizationService,i.__extends(a,n),i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],a));function a(e,t,o){return n.call(this,e,t,o)||this}t.EditorLocalizationService=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(0),l=o(1),i=o(16),c=o(24),p=o(23),r=o(4),a=o(7),u=o(15),m=o(8),d=o(93),h=o(92),f=o(38),g=o(89),_=o(87),b=o(9),v=o(35),y=o(34),C=o(33),k=o(10),w=o(2),E=o(86),T=o(32),o=o(5),S={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!1,removeMsClasses:!1,removeMsStyles:!1,stripTags:[""]},x=b.conditionallyExecute(m.removeComments),D=b.conditionallyExecute(m.sanitize),o=(n=B,Object.defineProperty(B.prototype,"value",{get:function(){var e=this._view?this.getSource():this._value;return"<p></p>"===e?this._value&&"":e},set:function(e){this._previousValue!==e&&(this._value=e,this._previousValue=e,this._view)&&(this.iframe&&!this.container.element.nativeElement.contentWindow||this.exec("setHTML",{content:this._value||"",parseOptions:{preserveWhitespace:this.preserveWhitespace}}))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(_.disabledToolBarState):this.stateChange.next(_.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"readonly",{get:function(){return this._readonly},set:function(e){var t;this._readonly=e||!1,this._view&&(t=void 0,e=(t=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode,this._view.dom.contains(e)&&t.getSelection().removeAllRanges(),t=this._view.state.doc,t=this._view.state.tr.setSelection(m.TextSelection.create(t,1)),this._view.dispatch(t)),this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(_.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(_.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"schema",{get:function(){return this._schema},set:function(e){if(l.isDevMode){if(!(e instanceof m.Schema))throw new Error(T.EditorErrorMessages.schemaType);if(this._view)throw new Error(T.EditorErrorMessages.setSchemaOnce)}this._schema=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"plugins",{get:function(){return this._plugins},set:function(e){if(l.isDevMode){if("function"!=typeof e)throw new Error(T.EditorErrorMessages.pluginsCallbackType(e));if(this._view)throw new Error(T.EditorErrorMessages.setPluginsOnce)}this._plugins=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(l.isDevMode&&this._view)throw new Error(T.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isIE",{get:function(){return this.iframe&&b.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minWidth",{get:function(){var e=this.resizable;return e.minWidth?e.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxWidth",{get:function(){var e=this.resizable;return e.maxWidth?e.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minHeight",{get:function(){var e=this.resizable;return e.minHeight?e.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxHeight",{get:function(){var e=this.resizable;return e.maxHeight?e.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"selectionText",{get:function(){return this._view&&this._view.state?m.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})),this.subs.add(this.toolsService.needsCheck.subscribe(function(){return t.cdr.markForCheck()}))},B.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},B.prototype.ngOnChanges=function(e){var t=this;e.iframe&&!e.iframe.isFirstChange()&&this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return t.initialize()}),e.resizable&&!e.resizable.isFirstChange()&&this.normalizeSize()},B.prototype.setDisabledState=function(e){this.disabled=e},B.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},B.prototype.exec=function(t,e){"setHTML"===t&&"string"==typeof e?e={content:e,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some(function(e){return e===t})&&(e={value:e,applyToWord:this.applyToWord}),g.editorCommands[t](e)(this._view.state,this._view.dispatch,this._view)},B.prototype.openDialog=function(e){var t={createLink:{content:C.FileLinkDialogComponent},insertFile:{content:C.FileLinkDialogComponent},insertImage:{content:y.ImageDialogComponent},viewSource:{content:v.SourceDialogComponent,height:400,width:500}},t=Object.assign({appendTo:this.dialogContainer},t[e]);this.toolbar.toggle(!1);t=this.dialogService.open(t).content.instance;"createLink"!==e&&"insertFile"!==e||(t.command=e),t.editor=this,t.setData(this._view.state,{applyToWord:this.applyToWord})},B.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},B.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},B.prototype.getSource=function(){return m.getHtml(this._view.state)},B.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},B.prototype.writeValue=function(e){this.value=null===e?void 0:e},B.prototype.registerOnChange=function(e){this.onChangeCallback=e},B.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},B.prototype.isEmpty=function(){return!1},B.prototype.initialize=function(){var e,o,t,n,i,r,a,l,d=this;u.isDocumentAvailable()&&(e=this.schema||f.schema,l=(o=this).container.element.nativeElement,t=m.parseContent((this.value||"").trim(),e,{preserveWhitespace:this.preserveWhitespace}),this.iframe?((i=(n=l.contentDocument).createElement("meta")).setAttribute("charset","utf-8"),n.head.appendChild(i),[E.defaultStyle,E.tablesStyles,"rtl"===this.dir?E.rtlStyles:void 0].forEach(function(e){var t;e&&((t=n.createElement("style")).appendChild(n.createTextNode(e)),n.head.appendChild(t))}),i=n.createElement("div"),n.body.appendChild(i)):(i=document.createElement("div"),l.appendChild(i)),i=[new m.Plugin({key:new m.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:d.readonly?"0":""}}}}),new m.Plugin({key:new m.PluginKey("toolbar-tools-update"),view:function(){return{update:function(e){d.disabled||d.stateChange.next(d.readonly?_.disabledToolBarState:_.getToolbarState(e.state,{applyToWord:d.applyToWord}))}}}}),new m.Plugin({key:new m.PluginKey("editor-filter-disabled-state"),filterTransaction:function(){return!d.disabled}}),m.history(),m.keymap(m.buildListKeymap(e)),m.keymap(m.buildKeymap(e,{applyToWord:this.applyToWord})),m.keymap(m.baseKeymap),m.gapCursor(),m.imageResizing()],this.placeholder&&i.push(m.placeholder(this.placeholder)),r=m.EditorState.create({schema:e,doc:t,plugins:b.isPresent(this.plugins)?this.plugins(i):i}),this.iframe?this.viewMountElement=l.contentDocument.querySelector("div"):this.viewMountElement=l.querySelector("div"),this.ngZone.runOutsideAngular(function(){d._view=new m.EditorView({mount:d.viewMountElement},{state:r,editable:function(){return!d.readonly},dispatchTransaction:function(e){this.updateState(this.state.apply(e));var t=o.value;m.hasSameMarkup(t,o._previousValue,this.state.schema)||(o._previousValue=t,o.ngZone.run(function(){return o.valueModified.next(t)}))},transformPastedHTML:function(e){var t=s.__assign({},S,d.pasteCleanupSettings),o=b.pipe(x(t.removeHtmlComments),D(t.removeInvalidHTML))(e),e=function(e){if("all"===e.removeAttributes)return{"*":m.removeAttribute};var t=b.removeEmptyEntries({style:e.removeMsStyles?m.sanitizeStyleAttr:void 0,class:e.removeMsClasses?m.sanitizeClassAttr:void 0});return e.removeAttributes.reduce(function(e,t){return s.__assign({},e,((e={})[t]=m.removeAttribute,e))},t)}(t);return m.pasteCleanup(o,{convertMsLists:t.convertMsLists,stripTags:t.stripTags.join("|"),attributes:e})}})}),this._view&&(l=void 0,a=this.element.nativeElement.querySelector(".k-editor-content").classList,l=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(c.fromEvent(l,"focusin").subscribe(function(){d.readonly&&a.add("k-state-focused"),d.focusChangedProgrammatically&&!d.shouldEmitFocus||(d.ngZone.run(function(){return d.onFocus.emit()}),d.shouldEmitFocus=!1)})),this.subs.add(c.fromEvent(l,"focusout").subscribe(function(){d.readonly&&a.remove("k-state-focused"),d.focusChangedProgrammatically||d.ngZone.run(function(){return d.onBlur.emit()})}))),this.subs.add(this.stateChange.subscribe(function(){(d.userToolBarComponent||d).cdr.detectChanges()})),this.subs.add(c.merge(this.valueModified.pipe(p.filter(function(){return 0<d.updateInterval}),p.auditTime(this.updateInterval)),this.valueModified.pipe(p.filter(function(){return 0===d.updateInterval}))).subscribe(function(e){d.onChangeCallback(e),d.valueChange.emit(e),d.cdr.markForCheck()})),this.subs.add(c.fromEvent(this.viewMountElement,"keyup").pipe(p.map(function(e){return e.keyCode}),p.filter(function(e){return 121===e}),p.map(function(){return d.userToolBarElement||d.defaultToolbar})).subscribe(function(e){return e.nativeElement.focus()})),this.subs.add(c.fromEvent(this.viewMountElement,"blur").pipe(p.filter(function(e){return!d.viewMountElement.contains(e.relatedTarget)})).subscribe(function(){return d.onTouchedCallback()})))},B.prototype.normalizeSize=function(){var e,t=this;"object"!=typeof this.resizable||this._styleObserver||(e=this.element.nativeElement,this._styleObserver=new MutationObserver(function(){t.ngZone.runOutsideAngular(function(){return t.normalizeProperties(e)})}),this._styleObserver.observe(e,{attributeFilter:["style"]}))},B.prototype.normalizeProperties=function(i){var e=Object.keys(this.resizable),r=parseInt(i.style.width,10),a=parseInt(i.style.height,10),l=this.resizable;e.forEach(function(e){var t=e.startsWith("min"),o=!t,n=e.endsWith("Width"),e=!n;t&&n?r<l.minWidth&&(i.style.width=l.minWidth+"px"):t&&e?a<l.minHeight&&(i.style.height=l.minHeight+"px"):o&&n?r>l.maxWidth&&(i.style.width=l.maxWidth+"px"):a>l.maxHeight&&(i.style.height=l.maxHeight+"px")})},s.__decorate([l.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"value",null),s.__decorate([l.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"disabled",null),s.__decorate([l.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"readonly",null),s.__decorate([l.Input(),s.__metadata("design:type",Boolean)],B.prototype,"iframe",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"applyToWord",void 0),s.__decorate([l.Input(),s.__metadata("design:type",m.Schema),s.__metadata("design:paramtypes",[m.Schema])],B.prototype,"schema",null),s.__decorate([l.Input(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[Function])],B.prototype,"plugins",null),s.__decorate([l.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"placeholder",null),s.__decorate([l.Input(),s.__metadata("design:type",Number)],B.prototype,"updateInterval",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"preserveWhitespace",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"pasteCleanupSettings",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"resizable",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],B.prototype,"valueChange",void 0),s.__decorate([l.Output("focus"),s.__metadata("design:type",l.EventEmitter)],B.prototype,"onFocus",void 0),s.__decorate([l.Output("blur"),s.__metadata("design:type",l.EventEmitter)],B.prototype,"onBlur",void 0),s.__decorate([l.HostBinding("class.k-editor"),s.__metadata("design:type",Boolean)],B.prototype,"hostClass",void 0),s.__decorate([l.HostBinding("class.k-editor-resizable"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"resizableClass",null),s.__decorate([l.HostBinding("class.k-state-disabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),s.__decorate([l.HostBinding("class.k-readonly"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isReadonly",null),s.__decorate([l.HostBinding("class.k-ie"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isIE",null),s.__decorate([l.HostBinding("attr.dir"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"dir",null),s.__decorate([l.HostBinding("attr.ariaDisabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"ariaDisabled",null),s.__decorate([l.HostBinding("style.minWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minWidth",null),s.__decorate([l.HostBinding("style.maxWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxWidth",null),s.__decorate([l.HostBinding("style.minHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minHeight",null),s.__decorate([l.HostBinding("style.maxHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxHeight",null),s.__decorate([l.ContentChild(r.ToolBarComponent,{static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"userToolBarComponent",void 0),s.__decorate([l.ContentChild(r.ToolBarComponent,{read:l.ElementRef,static:!1}),s.__metadata("design:type",l.ElementRef)],B.prototype,"userToolBarElement",void 0),s.__decorate([l.ViewChild("dialogsContainer",{read:l.ViewContainerRef,static:!0}),s.__metadata("design:type",l.ViewContainerRef)],B.prototype,"dialogContainer",void 0),s.__decorate([l.ViewChild("content",{read:l.ViewContainerRef,static:!1}),s.__metadata("design:type",l.ViewContainerRef)],B.prototype,"container",void 0),s.__decorate([l.ViewChild("defaultToolbar",{read:l.ElementRef,static:!1}),s.__metadata("design:type",l.ElementRef)],B.prototype,"defaultToolbar",void 0),s.__decorate([l.ViewChild("defaultToolbar",{read:r.ToolBarComponent,static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"defaultToolbarComponent",void 0),n=s.__decorate([l.Component({selector:"kendo-editor",providers:[w.EditorLocalizationService,o.EditorToolsService,{provide:k.LocalizationService,useExisting:w.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:i.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return n}),multi:!0},{provide:u.KendoInput,useExisting:l.forwardRef(function(){return n})}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."\n bold="Bold"\n i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."\n cleanFormatting="Clean formatting"\n i18n-createLink="kendo.editor.createLink|The title of the tool that creates hyperlinks."\n createLink="Insert link"\n i18n-dialogApply="kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs."\n dialogApply="Apply"\n i18n-dialogCancel="kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs."\n dialogCancel="Cancel"\n i18n-dialogInsert="kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs."\n dialogInsert="Insert"\n i18n-dialogUpdate="kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs."\n dialogUpdate="Update"\n i18n-fileText="kendo.editor.fileText|The caption for the file text in the insertFile dialog."\n fileText="Text"\n i18n-fileTitle="kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog."\n fileTitle="Title"\n i18n-fileWebAddress="kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog."\n fileWebAddress="Web address"\n i18n-fontFamily="kendo.editor.fontFamily|The title of the tool that changes the text font."\n fontFamily="Select font family"\n i18n-fontSize="kendo.editor.fontSize|The title of the tool that changes the text size."\n fontSize="Select font size"\n i18n-foreColor="kendo.editor.foreColor|The title of the tool that changes the text color."\n foreColor="Color"\n i18n-format="kendo.editor.format|The title of the tool that lets users choose block formats."\n format="Format"\n i18n-imageAltText="kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog."\n imageAltText="Alternate text"\n i18n-imageHeight="kendo.editor.imageHeight|The caption for the image height in the insertImage dialog."\n imageHeight="Height (px)"\n i18n-imageWebAddress="kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog."\n imageWebAddress="Web address"\n i18n-imageWidth="kendo.editor.imageWidth|The caption for the image width in the insertImage dialog."\n imageWidth="Width (px)"\n i18n-indent="kendo.editor.indent|The title of the tool that indents the content."\n indent="Indent"\n i18n-insertFile="kendo.editor.insertFile|The title of the tool that inserts links to files."\n insertFile="Insert file"\n i18n-insertImage="kendo.editor.insertImage|The title of the tool that inserts images."\n insertImage="Insert image"\n i18n-insertOrderedList="kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list."\n insertOrderedList="Insert ordered list"\n i18n-insertUnorderedList="kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list."\n insertUnorderedList="Insert unordered list"\n i18n-italic="kendo.editor.italic|The title of the tool that makes text italicized."\n italic="Italic"\n i18n-linkOpenInNewWindow="kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog."\n linkOpenInNewWindow="Open link in new window"\n i18n-linkText="kendo.editor.linkText|The caption for the link text in the createLink dialog."\n linkText="Text"\n i18n-linkTitle="kendo.editor.linkTitle|The caption for the link title in the createLink dialog."\n linkTitle="Title"\n i18n-linkWebAddress="kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog."\n linkWebAddress="Web address"\n i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."\n outdent="Outdent"\n i18n-print="kendo.editor.print|The title of the print tool."\n print="Print"\n i18n-redo="kendo.editor.redo|The title of the tool that undos the last action."\n redo="Redo"\n i18n-selectAll="kendo.editor.selectAll|The title of the tool that selects all content."\n selectAll="Select All"\n i18n-strikethrough="kendo.editor.strikethrough|The title of the tool that strikes through text."\n strikethrough="Strikethrough"\n i18n-subscript="kendo.editor.subscript|The title of the tool that makes text subscript."\n subscript="Subscript"\n i18n-superscript="kendo.editor.superscript|The title of the tool that makes text superscript."\n superscript="Superscript"\n i18n-underline="kendo.editor.underline|The title of the tool that underlines text."\n underline="Underline"\n i18n-unlink="kendo.editor.unlink|The title of the tool that removes hyperlinks."\n unlink="Remove Link"\n i18n-undo="kendo.editor.undo|The title of the tool that undos the last action."\n undo="Undo"\n i18n-viewSource="kendo.editor.viewSource|The title of the tool that shows the editor value as HTML."\n viewSource="View source"\n i18n-insertTable="kendo.editor.insertTable|The title of the tool that inserts table."\n insertTable="Insert Table"\n i18n-addColumnBefore="kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column."\n addColumnBefore="Add column before"\n i18n-addColumnAfter="kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column."\n addColumnAfter="Add column after"\n i18n-addRowBefore="kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row."\n addRowBefore="Add row before"\n i18n-addRowAfter="kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row."\n addRowAfter="Add row after"\n i18n-deleteColumn="kendo.editor.deleteColumn|The title of the tool that deletes a table column."\n deleteColumn="Delete column"\n i18n-deleteRow="kendo.editor.deleteRow|The title of the tool that deletes a table row."\n deleteRow="Delete row"\n i18n-deleteTable="kendo.editor.deleteTable|The title of the tool that deletes a table."\n deleteTable="Delete table"\n >\n </ng-container>\n\n <ng-content select="kendo-toolbar"></ng-content>\n <kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf="!iframe" #content [attr.dir]="direction" class="k-editor-content"></div>\n\n <div class="k-editor-content" *ngIf="iframe">\n <iframe #content frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),s.__metadata("design:paramtypes",[a.DialogService,k.LocalizationService,l.ChangeDetectorRef,l.NgZone,l.ElementRef,o.EditorToolsService])],B));function B(e,t,o,n,i,r){var a=this;this.dialogService=e,this.localization=t,this.cdr=o,this.ngZone=n,this.element=i,this.toolsService=r,this.iframe=!0,this.applyToWord=!1,this.updateInterval=100,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.hostClass=!0,this.stateChange=new c.BehaviorSubject(_.initialToolBarState),this.valueModified=new c.Subject,this._readonly=!1,this._placeholder="",this.afterViewInit=new c.Subject,this.contentAreaLoaded=new c.Subject,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},d.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.subs=c.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe(function(){return a.initialize()})}t.EditorComponent=o},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(24),i=n.__decorate([i.Injectable()],a);function a(){this.needsCheck=new r.Subject}t.EditorToolsService=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,n=o(0),n=(a=o(26).EditorCommandBase,n.__extends(i,a),i.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},i.prototype.pointerdownHandler=function(e){e.preventDefault()},i.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},i);function i(e,t,o,n,i){var r=a.call(this,e,t,o,n,i)||this;return r.command=e,r.button=t,r.editor=o,r.localization=n,r.toolsService=i,r}t.EditorCommandButton=n},function(e,t){e.exports=m},function(e,t){e.exports=a},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=t(15);o.outerWidth=function(e){var t=e.offsetWidth,e=getComputedStyle(e);return t+(parseFloat(e.marginLeft)||0+parseFloat(e.marginRight)||0)},o.removeEntries=function(o,t){return Object.keys(o).filter(function(e){return t(e)}).reduce(function(e,t){return Object.assign(e,((e={})[t]=o[t],e))},{})},o.removeEmptyEntries=function(t){return o.removeEntries(t,function(e){return null!==t[e]&&void 0!==t[e]&&""!==t[e]})},o.isEmpty=function(e){return 0===Object.keys(e).length},o.isNullOrUndefined=function(e){return null==e},o.isPresent=function(e){return!o.isNullOrUndefined(e)},o.detectIE=function(){if(!n.isDocumentAvailable())return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),e=e.indexOf("Trident/");return 0<t||0<e},o.safeString=function(e){return o.isNullOrUndefined(e)?"":e.toString()},o.first=function(e){return e[0]},o.last=function(e){return e[e.length-1]},o.unique=function(e){return Array.from(new Set(e))},o.split=function(t){return function(e){return e.split(t)}},o.trim=function(e){return e.trim()},o.filter=function(t){return function(e){return e.filter(t)}},o.toArray=function(e){return e instanceof Array?e:[e]},o.getUniqueStyleValues=function(e,t){if(e.hasNodesWithoutMarks)return"";e=e.marks.filter(function(e){return"style"===e.type.name}).map(function(e){return e.attrs.style}).map(o.safeString).map(o.split(";")).map(o.filter(function(e){return e.includes(t)})).map(function(e){return 0!==e.length?e:[t+": INVALID"]}).map(o.first).map(o.split(":")).map(o.last).map(o.trim).reduce(function(e,t){return-1<e.indexOf(t)?e:e.concat([t])},[]);return-1<e.indexOf("INVALID")||1!==e.length?"":e[0]},o.conditionallyExecute=function(o){return function(t){return function(e){return t?o(e):e}}},o.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce(function(e,t){return t(e)},e)}}},function(e,t){e.exports=y},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);t.hasAttrs=function(e,t){for(var o in e)if(o&&null!==e[o]&&o!==t)return!0;return!1},t.getAttrs=function(e,t){var o,n={};for(o in e)o&&null!==e[o]&&o!==t&&(n[o]=e[o]);return n},t.getAttributes=function(e){for(var t,o={},n=e.attributes,i=0;i<n.length;i++)o[(t=n[i]).name]=t.value;return o},t.serializeDOMAttrs=function(e){return Array.from(e.attributes).reduce(function(e,t){return Object.assign({},e,((e={})[t.name]=t.value,e))},{})},t.commonAttributes=function(){return n.__assign({},t.createDefaultAttributes(["class","id","style"]))},t.createDefaultAttributes=function(e){return n.__assign({},(e=void 0===e?[]:e).reduce(function(e,t){return n.__assign({},e,((e={})[t]={default:null},e))},{}))},t.hole=0,t.isSchemaNode=function(t){return function(e){return e.type.name===t}},t.isTable=t.isSchemaNode("table"),t.isTableBody=t.isSchemaNode("table_body"),t.isTableHead=t.isSchemaNode("table_head"),t.isTableFoot=t.isSchemaNode("table_foot"),t.isTableRow=t.isSchemaNode("table_row"),t.isTableCell=t.isSchemaNode("table_cell"),t.isTableHeaderCell=t.isSchemaNode("table_header")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,n=o(0),n=(a=o(26).EditorCommandBase,n.__extends(i,a),i.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},i.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},i);function i(e,t,o,n,i){var r=a.call(this,e,t,o,n,i)||this;return r.dialog=e,r.button=t,r.editor=o,r.localization=n,r.toolsService=i,r}t.EditorCommandDialog=n},function(e,t){e.exports=f},function(e,t){e.exports=u},function(e,t){e.exports=b},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(13),s=o(2),c=o(9),p=o(3),u=o(7),m=o(30),h=o(23),a=(r=l.ToolBarToolComponent,i.__extends(f,r),n=f,Object.defineProperty(f.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),f.prototype.ngOnInit=function(){var t=this;this.subs=this.editor.stateChange.subscribe(function(e){e=e.style;t.disabled=e.disabled})},f.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},f.prototype.handleValueChange=function(e){this.editor.exec(this.editorCommand,e)},f.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.handleValueChange(e.color)},f.prototype.onOpen=function(e){this.valueCache=e.value,e.reset()},f.prototype.onClose=function(e){var t=this;e.value||(e.value=this.valueCache),this.ngZone.onStable.pipe(h.take(1)).subscribe(function(){return t.editor.view.focus()})},Object.defineProperty(f.prototype,"outerWidth",{get:function(){if(this.element)return c.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),f.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:m.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,view:this.view})},f.prototype.canFocus=function(){return!this.disabled},f.prototype.focus=function(){this.tabindex=0,(this.overflows?this.colorPickerButton.nativeElement:this.colorPicker).focus()},f.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"icon",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],f.prototype,"paletteSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"editorCommand",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],f.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"view",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],f.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],f.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("colorpicker",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],f.prototype,"element",void 0),i.__decorate([a.ViewChild("colorpicker",{read:d.ColorPickerComponent,static:!1}),i.__metadata("design:type",d.ColorPickerComponent)],f.prototype,"colorPicker",void 0),i.__decorate([a.ViewChild("colorPickerButton",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],f.prototype,"colorPickerButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[p.EditorComponent,s.EditorLocalizationService,u.DialogService,a.NgZone])],f));function f(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.localization=t,i.dialogService=o,i.ngZone=n,i.tabindex=-1,i.disabled=!1,i.view="palette",i}t.EditorColorPickerComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(14),n=(r.prototype.onValueChange=function(e){this.valueChange.emit(e)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}t.FontSizeDropDownListComponent=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(14),n=(r.prototype.onValueChange=function(e){this.valueChange.emit(e)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}t.FontFamilyDropDownListComponent=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(14),n=(r.prototype.onValueChange=function(e){this.valueChange.emit(e)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'blockquote\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}t.FormatDropDownListComponent=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,r,a,l,x=o(11);r="undefined"!=typeof WeakMap?(n=new WeakMap,i=function(e){return n.get(e)},function(e,t){return n.set(e,t),t}):(a=[],l=0,i=function(e){for(var t=0;t<a.length;t+=2)if(a[t]===e)return a[t+1]},function(e,t){return 10===l&&(l=0),a[l++]=e,a[l++]=t});function d(e){if(!(x.isTable(e)||x.isTableBody(e)||x.isTableHead(e)||x.isTableFoot(e)))throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,o=!1,n=0;n<e.childCount;n++){var i,r=e.child(n),a=0;if(o)for(var l=0;l<n;l++)for(var d=e.child(l),s=0;s<d.childCount;s++)l+(i=d.child(s)).attrs.rowspan>n&&(a+=i.attrs.colspan);for(s=0;s<r.childCount;s++)a+=(i=r.child(s)).attrs.colspan,1<i.attrs.rowspan&&(o=!0);-1===t?t=a:t!==a&&(t=Math.max(t,a))}return t}(e),o=e.childCount,n=[],i=0,r=null,a=[],l=0,d=t*o;l<d;l++)n[l]=0;for(var s=0,c=0;s<o;s++){var p=e.child(s);for(c++,l=0;;l++){for(;i<n.length&&0!==n[i];)i++;if(l===p.childCount)break;for(var u=p.child(l),m=u.attrs,h=m.colspan,f=m.rowspan,g=m.colwidth,_=0;_<f;_++){if(o<=_+s){(r=r||[]).push({type:"overlong_rowspan",pos:c,n:f-_});break}for(var b=i+_*t,v=0;v<h;v++){0===n[b+v]?n[b+v]=c:(r=r||[]).push({type:"collision",row:s,pos:c,n:h-v});var y,C,k=g&&g[v];k&&(null==(C=a[y=(b+v)%t*2])||C!==k&&1===a[1+y]?(a[y]=k,a[1+y]=1):C===k&&a[1+y]++)}}i+=h,c+=u.nodeSize}for(var w=(s+1)*t,E=0;i<w;)0===n[i++]&&E++;E&&(r=r||[]).push({type:"missing",row:s,n:E}),c++}for(var T=new D(t,o,n,r),S=!1,l=0;!S&&l<a.length;l+=2)null!=a[l]&&a[l+1]<o&&(S=!0);return S&&function(e,t,o){e.problems||(e.problems=[]);for(var n=0,i={};n<e.map.length;n++){var r=e.map[n];if(!i[r]){i[r]=!0;for(var a=o.nodeAt(r),l=null,d=0;d<a.attrs.colspan;d++){var s=t[(n+d)%e.width*2];null==s||a.attrs.colwidth&&a.attrs.colwidth[d]===s||((l=l||function(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],o=0;o<e.colspan;o++)t.push(0);return t}(a.attrs))[d]=s)}l&&e.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:l})}}}(T,a,e),T}var s=function(e,t,o,n){this.left=e,this.top=t,this.right=o,this.bottom=n};t.Rect=s;var D=(c.get=function(e){return i(e)||r(e,d(e))},c.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var o=this.map[t];if(o===e){for(var n=t%this.width,i=Math.floor(t/this.width),r=1+n,a=i+1,l=1;r<this.width&&this.map[t+l]===o;l++)r++;for(l=1;a<this.height&&this.map[t+this.width*l]===o;l++)a++;return new s(n,i,r,a)}}throw new RangeError("No cell with offset "+e+" found")},c.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]===e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},c.prototype.nextCell=function(e,t,o){var n=this.findCell(e),i=n.left,r=n.right,e=n.top,n=n.bottom;return"horiz"===t?(o<0?0===i:r===this.width)?null:this.map[e*this.width+(o<0?i-1:r)]:(o<0?0===e:n===this.height)?null:this.map[i+this.width*(o<0?e-1:n)]},c.prototype.rectBetween=function(e,t){var o=this.findCell(e),n=o.left,i=o.right,r=o.top,a=o.bottom,l=this.findCell(t),e=l.left,o=l.right,t=l.top,l=l.bottom;return new s(Math.min(n,e),Math.min(r,t),Math.max(i,o),Math.max(a,l))},c.prototype.cellsInRect=function(e){for(var t=[],o={},n=e.top;n<e.bottom;n++)for(var i=e.left;i<e.right;i++){var r=n*this.width+i,a=this.map[r];o[a]||(o[a]=!0,i===e.left&&i&&this.map[r-1]===a||n===e.top&&n&&this.map[r-this.width]===a||t.push(a))}return t},c.prototype.positionAt=function(e,t,o){for(var n=0,i=0;;n++){var r=i+o.child(n).nodeSize;if(n===e){for(var a=t+e*this.width,l=(e+1)*this.width;a<l&&this.map[a]<i;)a++;return a===l?r-1:this.map[a]}i=r}},c);function c(e,t,o,n){this.width=e,this.height=t,this.map=o,this.problems=n}t.TableMap=D},function(e,t){e.exports=_},function(e,t){e.exports=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),i=(n=o(10).ComponentMessages,i.__extends(a,n),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignCenter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignJustify",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignLeft",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignRight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"backColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"bold",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"cleanFormatting",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"createLink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontFamily",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"foreColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"indent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertFile",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertImage",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertOrderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertUnorderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"italic",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"outdent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"print",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"redo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"selectAll",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"strikethrough",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"subscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"superscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"underline",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"undo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"unlink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"viewSource",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteColumn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogApply",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogCancel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogInsert",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogUpdate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageAltText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkOpenInNewWindow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkWebAddress",void 0),a);function a(){return null!==n&&n.apply(this,arguments)||this}t.Messages=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(17),o=(n.prototype.ngOnInit=function(){this.subs=this.editor.stateChange.subscribe(this.onStateChange.bind(this)),this.subs.add(this.button.click.subscribe(this.clickHandler.bind(this))),this.subs.add(this.button.pointerdown.subscribe(this.pointerdownHandler.bind(this)))},n.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},n.prototype.clickHandler=function(){},n.prototype.pointerdownHandler=function(e){},n.prototype.onStateChange=function(e){},n);function n(e,t,o,n,i){var r=this;this.command=e,this.button=t,this.editor=o,this.localization=n,this.toolsService=i,setTimeout(function(){var e=r.localization.get(r.command);e&&(r.button.showText="overflow",r.button.showIcon="both",r.button.text=e),r.button.toolbarOptions.icon||(r.button.icon=a.commandIcons[r.command]),r.button.title=e,r.toolsService.needsCheck.next()})}t.EditorCommandBase=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(19),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.fontSizeDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontSizeDropDownList",{read:o.FontSizeDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontSizeDropDownListComponent)],s.prototype,"fontSizeDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data=[],o}t.FontSizeDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),o=o(3),l=(n=a.DialogContentBase,i.__extends(d,n),d.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},d.prototype.onCellClick=function(e){this.dialog.close(),this.editor.exec("insertTable",e),this.editor.view.focus()},d.prototype.setData=function(e){this.editor=e.editor},d.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",o.EditorComponent)],d.prototype,"editor",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],d));function d(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o}t.InsertTableDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(20),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.fontFamilyDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontFamilyDropDownList",{read:o.FontFamilyDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontFamilyDropDownListComponent)],s.prototype,"fontFamilyDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data=[],o}t.FontFamilyDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(13),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.colorPicker.focus()})},s.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.value=e.color},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.value=e.value,this.editorCommand=e.editorCommand,this.paletteSettings=e.paletteSettings,this.icon=e.icon,this.view=e.view},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("colorpicker",{read:o.ColorPickerComponent,static:!0}),i.__metadata("design:type",o.ColorPickerComponent)],s.prototype,"colorPicker",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o}t.ColorPickerDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(21),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.formatDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("formatDropDownList",{read:o.FormatDropDownListComponent,static:!0}),i.__metadata("design:type",o.FormatDropDownListComponent)],s.prototype,"formatDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data=[],o}t.FormatDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(e){return"plugins must be a function, but received "+JSON.stringify(e)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(16),l=o(7),d=o(8),s=o(9),o=o(2),o=(n=l.DialogContentBase,i.__extends(c,n),c.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.hrefInput.nativeElement.focus()})},c.prototype.onCancelAction=function(){this.dialog.close()},c.prototype.onConfirmAction=function(){var e=this.getData();this.editor.exec(this.command,e),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(c.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),c.prototype.setData=function(e,t){"createLink"===this.command&&this.linkForm.addControl("target",new a.FormControl);var o=d.getMark(e,e.schema.marks.link);o?this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:s.isPresent(o.attrs.target),text:this.setLinkText(e)}):e.selection.empty?(t=t.applyToWord?d.expandSelection(e,function(){},t).state:e).selection.empty||this.linkForm.patchValue({text:d.getSelectionText(t)}):this.linkForm.patchValue({text:d.getSelectionText(e)})},c.prototype.textForWithPrefix=function(e){var t="createLink"===this.command?"link":"file";return this.textFor(t+e)},c.prototype.textFor=function(e){return this.localization.get(e)},c.prototype.setLinkText=function(e){var t=e.selection;if(t.empty&&t.$cursor){var o=t.$cursor,t=o.index();return o.parent.child(t).text}return d.getSelectionText(e)},c.prototype.getData=function(){var e=this.linkForm.value;return s.isPresent(this.linkForm.controls.target)&&(e.target=e.target?"_blank":null),e},i.__decorate([r.Input(),i.__metadata("design:type",Object)],c.prototype,"editor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],c.prototype,"command",void 0),i.__decorate([r.ViewChild("hrefInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],c.prototype,"hrefInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="textInput.focus()">{{ textForWithPrefix(\'Text\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #textInput formControlName="text" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="titleInput.focus()">{{ textForWithPrefix(\'Title\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #titleInput formControlName="title" type="text" class="k-textbox" />\n </div>\n <ng-container *ngIf="command === \'createLink\'">\n <div class="k-edit-label"></div>\n <div class="k-edit-field">\n <input type="checkbox" id="k-target-blank" class="k-checkbox" formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,o.EditorLocalizationService])],c));function c(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.linkForm=new a.FormGroup({href:new a.FormControl("",a.Validators.required),text:new a.FormControl({value:"",disabled:!0},a.Validators.required),title:new a.FormControl("")}),o}t.FileLinkDialogComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(16),l=o(7),d=o(8),s=o(9),c=o(2),p=o(15),c=(n=l.DialogContentBase,i.__extends(u,n),u.prototype.ngOnInit=function(){this.srcInputId="k-"+p.guid(),this.altTextInputId="k-"+p.guid(),this.widthInputId="k-"+p.guid(),this.heightInputId="k-"+p.guid()},u.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.srcInput.nativeElement.focus()})},u.prototype.onCancelAction=function(){this.dialog.close()},u.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},u.prototype.setData=function(e){e=d.getNodeFromSelection(e);e&&(this.src.patchValue(e.attrs.src),this.alt.patchValue(e.attrs.alt),this.width.patchValue(e.attrs.width),this.height.patchValue(e.attrs.height))},u.prototype.textFor=function(e){return this.localization.get(e)},u.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},u.prototype.normalizeDimension=function(e){return Number.isNaN(parseInt(e,10))||parseInt(e,10)<=0?"":s.safeString(parseInt(e,10))},i.__decorate([r.Input(),i.__metadata("design:type",Object)],u.prototype,"editor",void 0),i.__decorate([r.ViewChild("srcInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],u.prototype,"srcInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="altTextInputId">{{ textFor(\'imageAltText\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="widthInputId">{{ textFor(\'imageWidth\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="heightInputId">{{ textFor(\'imageHeight\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,c.EditorLocalizationService])],u));function u(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.src=new a.FormControl("",a.Validators.required),o.alt=new a.FormControl(""),o.width=new a.FormControl("",a.Validators.min(1)),o.height=new a.FormControl("",a.Validators.min(1)),o.data={alt:"",height:"",src:"",width:""},o.imageData=new a.FormGroup({alt:o.alt,height:o.height,src:o.src,width:o.width}),o}t.ImageDialogComponent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),o=o(2),o=(n=a.DialogContentBase,i.__extends(l,n),l.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.textarea.nativeElement.focus()})},l.prototype.onCancelAction=function(){this.dialog.close()},l.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},l.prototype.getData=function(){return this.textarea.nativeElement.value},l.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},l.prototype.textFor=function(e){return this.localization.get(e)},l.prototype.indent=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},i.__decorate([r.Input(),i.__metadata("design:type",Object)],l.prototype,"editor",void 0),i.__decorate([r.ViewChild("textarea",{static:!0}),i.__metadata("design:type",r.ElementRef)],l.prototype,"textarea",void 0),i.__decorate([r.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,o.EditorLocalizationService])],l));function l(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data="",o}t.SourceDialogComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d,n=o(0),f=o(8),g=o(22),_=o(37),i=(d=f.Selection,n.__extends(l,d),l.colSelection=function(e,t){void 0===t&&(t=e);var o=g.TableMap.get(e.node(-1)),n=e.start(-1),i=o.findCell(e.pos-n),r=o.findCell(t.pos-n),a=e.node(0);return i.top<=r.top?(0<i.top&&(e=a.resolve(n+o.map[i.left])),r.bottom<o.height&&(t=a.resolve(n+o.map[o.width*(o.height-1)+r.right-1]))):(0<r.top&&(t=a.resolve(n+o.map[r.left])),i.bottom<o.height&&(e=a.resolve(n+o.map[o.width*(o.height-1)+i.right-1]))),new l(e,t)},l.rowSelection=function(e,t){void 0===t&&(t=e);var o=g.TableMap.get(e.node(-1)),n=e.start(-1),i=o.findCell(e.pos-n),r=o.findCell(t.pos-n),a=e.node(0);return i.left<=r.left?(0<i.left&&(e=a.resolve(n+o.map[i.top*o.width])),r.right<o.width&&(t=a.resolve(n+o.map[o.width*(r.top+1)-1]))):(0<r.left&&(t=a.resolve(n+o.map[r.top*o.width])),i.right<o.width&&(e=a.resolve(n+o.map[o.width*(i.top+1)-1]))),new l(e,t)},l.fromJSON=function(e,t){return new l(e.resolve(t.anchor),e.resolve(t.head))},l.create=function(e,t,o){return void 0===o&&(o=t),new l(e.resolve(t),e.resolve(o))},l.prototype.map=function(e,t){var o=e.resolve(t.map(this.$anchorCell.pos)),e=e.resolve(t.map(this.$headCell.pos));if(_.pointsAtCell(o)&&_.pointsAtCell(e)&&_.inSameTable(o,e)){t=this.$anchorCell.node(-1)!==o.node(-1);return t&&this.isRowSelection()?l.rowSelection(o,e):t&&this.isColSelection()?l.colSelection(o,e):new l(o,e)}return f.TextSelection.between(o,e)},l.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=g.TableMap.get(e),o=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o),i={},r=[],a=n.top;a<n.bottom;a++){for(var l=[],d=a*t.width+n.left,s=n.left;s<n.right;s++,d++){var c,p,u,m,h=t.map[d];i[h]||(i[h]=!0,c=t.findCell(h),p=e.nodeAt(h),u=n.left-c.left,h=c.right-n.right,(0<u||0<h)&&(m=p.attrs,0<u&&(m=_.removeColSpan(m,0,u)),0<h&&(m=_.removeColSpan(m,m.colspan-h,h)),p=c.left<n.left?p.type.createAndFill(m):p.type.create(m,p.content)),(c.top<n.top||c.bottom>n.bottom)&&(m=_.setAttr(p.attrs,"rowspan",Math.min(c.bottom,n.bottom)-Math.max(c.top,n.top)),p=c.top<n.top?p.type.createAndFill(m):p.type.create(m,p.content)),l.push(p))}r.push(e.child(a).copy(f.Fragment.from(l)))}o=this.isColSelection()&&this.isRowSelection()?e:r;return new f.Slice(f.Fragment.from(o),1,1)},l.prototype.replace=function(e,t){void 0===t&&(t=f.Slice.empty);for(var o=e.steps.length,n=this.ranges,i=0;i<n.length;i++){var r=n[i],a=r.$from,l=r.$to,r=e.mapping.slice(o);e.replace(r.map(a.pos),r.map(l.pos),i?f.Slice.empty:t)}var d=f.Selection.findFrom(e.doc.resolve(e.mapping.slice(o).map(this.to)),-1);d&&e.setSelection(d)},l.prototype.replaceWith=function(e,t){this.replace(e,new f.Slice(f.Fragment.from(t),0,0))},l.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),o=g.TableMap.get(t),n=this.$anchorCell.start(-1),i=o.cellsInRect(o.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n)),r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])},l.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(0<Math.min(e,t))return!1;e+=this.$anchorCell.nodeAfter.attrs.rowspan,t+=this.$headCell.nodeAfter.attrs.rowspan;return Math.max(e,t)===this.$headCell.node(-1).childCount},l.prototype.isRowSelection=function(){var e=g.TableMap.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),o=e.colCount(this.$anchorCell.pos-t),t=e.colCount(this.$headCell.pos-t);if(0<Math.min(o,t))return!1;o+=this.$anchorCell.nodeAfter.attrs.colspan,t+=this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,t)===e.width},l.prototype.eq=function(e){return e instanceof l&&e.$anchorCell.pos===this.$anchorCell.pos&&e.$headCell.pos===this.$headCell.pos},l.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},l.prototype.getBookmark=function(){return new r(this.$anchorCell.pos,this.$headCell.pos)},l);function l(e,t){void 0===t&&(t=e);var o=this,n=e.node(-1),i=g.TableMap.get(n),r=e.start(-1),a=i.rectBetween(e.pos-r,t.pos-r),l=e.node(0),a=i.cellsInRect(a).filter(function(e){return e!==t.pos-r});a.unshift(t.pos-r);a=a.map(function(e){var t=n.nodeAt(e),e=e+r+1;return new f.SelectionRange(l.resolve(e),l.resolve(e+t.content.size))});return(o=d.call(this,a[0].$from,a[0].$to,a)||this).$anchorCell=e,o.$headCell=t,o}(t.CellSelection=i).prototype.visible=!1,f.Selection.jsonID("table_cell",i);var r=(a.prototype.map=function(e){return new a(e.map(this.anchor),e.map(this.head))},a.prototype.resolve=function(e){var t=e.resolve(this.anchor),e=e.resolve(this.head);return"row"===t.parent.type.spec.tableRole&&"row"===e.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&e.index()<e.parent.childCount&&_.inSameTable(t,e)?new i(t,e):f.Selection.near(e,1)},a);function a(e,t){this.anchor=e,this.head=t}},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=t(8),a=t(11),l=t(22),_=t(36);g.findParentNodeClosestToPos=function(e,t){for(var o=e.depth;0<o;o--){var n=e.node(o);if(t(n))return{start:e.start(o),pos:0<o?e.before(o):0,depth:o,node:n}}},g.createTable=function(e,t,o){for(var n=e.table,i=e.table_body,r=e.table_row,a=e.table_cell,l=[],d=0;d<t+1;d++){for(var s=[],c=0;c<o+1;c++)s.push(a.createAndFill());l.push(r.createAndFill(void 0,s))}i=i.createAndFill(void 0,l);return n.createAndFill(void 0,i)},g.isInTable=function(e){for(var t=e.selection.$head,o=t.depth;0<o;o--)if(a.isTableRow(t.node(o)))return!0;return!1},g.setAttr=function(e,t,o){var n,i={};for(n in e)i[n]=e[n];return i[t]=o,i};function b(e){for(var t=e.depth-1;0<t;t--)if(a.isTableRow(e.node(t)))return e.node(0).resolve(e.before(t+1));return null}g.selectedRect=function(e){var t,o=(t=e)instanceof _.CellSelection&&t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t instanceof r.NodeSelection&&t.node&&a.isTableCell(t.node)?t.$anchor:b(t.$head)||function(e){for(var t=e.nodeAfter,o=e.pos;t;t=t.firstChild,o++)if("cell"===(n=t.type.spec.tableRole)||"header_cell"===n)return e.doc.resolve(o);for(var n,i=e.nodeBefore,o=e.pos;i;i=i.lastChild,o--)if("cell"===(n=i.type.spec.tableRole)||"header_cell"===n)return e.doc.resolve(o-i.nodeSize)}(t.$head),n=o.node(-1),i=o.start(-1),t=l.TableMap.get(n),o=e instanceof _.CellSelection?t.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):t.findCell(o.pos-i);return o.tableStart=i,o.map=t,o.table=n,o},g.tableNodeTypes=function(e){var t=e.cached.tableNodeTypes;if(!t)for(var o in t=e.cached.tableNodeTypes={},e.nodes){var n=e.nodes[o],o=n.spec.tableRole;o&&(t[o]=n)}return t},g.rowIsHeader=function(e,t,o){for(var n=g.tableNodeTypes(t.type.schema).header_cell,i=0;i<e.width;i++)if(t.nodeAt(e.map[i+o*e.width]).type!==n)return!1;return!0},g.addColSpan=function(e,t,o){var n=g.setAttr(e,"colspan",e.colspan+(o=void 0===o?1:o));if(n.colwidth){n.colwidth=n.colwidth.slice();for(var i=0;i<o;i++)n.colwidth.splice(t,0,0)}return n},g.removeColSpan=function(e,t,o){e=g.setAttr(e,"colspan",e.colspan-(o=void 0===o?1:o));return e.colwidth&&(e.colwidth=e.colwidth.slice(),e.colwidth.splice(t,o),e.colwidth.some(function(e){return 0<e})||(e.colwidth=null)),e},g.isCellEmpty=function(e){e=e.content;return 1===e.childCount&&e.firstChild.isTextblock&&0===e.firstChild.childCount},g.splitCellWithType=function(f){return function(e,t){var o,n,i=e.selection;if(i instanceof _.CellSelection){if(i.$anchorCell.pos!==i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,n=i.$anchorCell.pos}else{if(!(o=function(e){for(var t=e.depth;0<t;t--){var o=e.node(t).type.spec.tableRole;if("cell"===o||"header_cell"===o)return e.node(t)}return null}(i.$from)))return!1;n=b(i.$from).pos}if(1===o.attrs.colspan&&1===o.attrs.rowspan)return!1;if(t){var r=o.attrs,a=[],l=r.colwidth;1<(r=1<r.rowspan?g.setAttr(r,"rowspan",1):r).colspan&&(r=g.setAttr(r,"colspan",1));for(var d=g.selectedRect(e),s=e.tr,c=0;c<d.right-d.left;c++)a.push(l?g.setAttr(r,"colwidth",l&&l[c]?[l[c]]:null):r);for(var p=void 0,u=d.top;u<d.bottom;u++){var m=d.map.positionAt(u,d.left,d.table);u===d.top&&(m+=o.nodeSize);for(var h=d.left,c=0;h<d.right;h++,c++)h===d.left&&u===d.top||s.insert(p=s.mapping.map(m+d.tableStart,1),f({node:o,row:u,col:h}).createAndFill(a[c]))}s.setNodeMarkup(n,f({node:o,row:d.top,col:d.left}),a[0]),i instanceof _.CellSelection&&s.setSelection(new _.CellSelection(s.doc.resolve(i.$anchorCell.pos),p&&s.doc.resolve(p))),t(s)}return!0}},g.pointsAtCell=function(e){return a.isTableRow(e.parent)&&e.nodeAfter},g.inSameTable=function(e,t){return e.depth===t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)},g.cellsOverlapRectangle=function(e,t){for(var o=e.width,n=e.height,i=e.map,r=t.top*o+t.left,a=r,l=(t.bottom-1)*o+t.left,d=r+(t.right-t.left-1),s=t.top;s<t.bottom;s++){if(0<t.left&&i[a]===i[a-1]||t.right<o&&i[d]===i[d+1])return!0;a+=o,d+=o}for(s=t.left;s<t.right;s++){if(0<t.top&&i[r]===i[r-o]||t.bottom<n&&i[l]===i[l+o])return!0;r++,l++}return!1}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(91),r=o(8);t.Schema=r.Schema;var a=o(90),o=r.marks,i=Object.assign(r.nodes,a.tableNodes,i.semanticNodes);t.schema=new r.Schema({marks:o,nodes:n.__assign({},i,{blockquote:n.__assign({},i.blockquote,{content:"inline*"})})})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),c.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,i.prototype.clickHandler.call(this)},n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"selectAll",e,t,o,n)||this}t.EditorSelectAllButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),c=o(32),o=o(5),o=(i=d.EditorCommandButton,n.__extends(p,i),p.prototype.ngAfterViewInit=function(){if(r.isDevMode&&!this.editor.iframe)throw new Error(c.EditorErrorMessages.printTool)},p.prototype.clickHandler=function(){var e;!this.editor.iframe||(e=(e=(e=(e=this.editor.view)&&e.dom)&&e.ownerDocument)&&e.defaultView)&&e.print()},n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],p));function p(e,t,o,n){n=i.call(this,"print",e,t,o,n)||this;return n.editor=t,n}t.EditorPrintDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),o=o(1),o=(i.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){e.hostEl.nativeElement.addEventListener("pointerdown",e.preventDefault)})},i.prototype.ngOnDestroy=function(){this.hostEl.nativeElement.removeEventListener("pointerdown",this.preventDefault)},n.__decorate([o.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],i));function i(e,t){this.hostEl=e,this.zone=t,this.preventDefault=function(e){e.preventDefault()}}t.DropDownToolDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(10),o=o(25),l=(n=o.Messages,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-editor-messages",template:""}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(10),o=o(25),l=(n=o.Messages,r.__extends(d,n),i=d,i=r.__decorate([a.Directive({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoEditorLocalizedMessages]"}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"splitCell",e,t,o,n)||this}t.EditorSplitCellButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"mergeCells",e,t,o,n)||this}t.EditorMergeCellsButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"deleteTable",e,t,o,n)||this}t.EditorDeleteTableButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"deleteRow",e,t,o,n)||this}t.EditorDeleteRowButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"deleteColumn",e,t,o,n)||this}t.EditorDeleteColumnButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addRowAfter",e,t,o,n)||this}t.EditorAddRowAfterButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addRowBefore",e,t,o,n)||this}t.EditorAddRowBeforeButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addColumnAfter",e,t,o,n)||this}t.EditorAddColumnAfterButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addColumnBefore",e,t,o,n)||this}t.EditorAddColumnBeforeButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"cleanFormatting",e,t,o,n)||this}t.EditorCleanFormattingButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(18),a=o(17),r=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}t.EditorBackColorDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(18),a=o(17),r=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}t.EditorForeColorDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(3),l=o(12),d=o(4),s=o(2),o=o(5),o=(i=l.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[d.ToolBarButtonComponent,a.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertFile",e,t,o,n)||this}t.EditorInsertFileButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"superscript",e,t,o,n)||this}t.EditorSuperscriptButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"subscript",e,t,o,n)||this}t.EditorSubscriptButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"strikethrough",e,t,o,n)||this}t.EditorStrikethroughButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"underline",e,t,o,n)||this}t.EditorUnderlineButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"italic",e,t,o,n)||this}t.EditorItalicButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"bold",e,t,o,n)||this}t.EditorBoldButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(12),s=o(2),o=o(5),o=(i=d.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"viewSource",e,t,o,n)||this}t.EditorViewSourceButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertUnorderedList",e,t,o,n)||this}t.EditorInsertUnorderedListButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertOrderedList",e,t,o,n)||this}t.EditorInsertOrderedListButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"unlink",e,t,o,n)||this}t.EditorUnlinkButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(12),s=o(2),o=o(5),o=(i=d.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"createLink",e,t,o,n)||this}t.EditorCreateLinkButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"outdent",e,t,o,n)||this}t.EditorOutdentButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"indent",e,t,o,n)||this}t.EditorIndentButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(12),s=o(2),o=o(5),o=(i=d.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertImage",e,t,o,n)||this}t.EditorInsertImageButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"undo",e,t,o,n)||this}t.EditorUndoButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"redo",e,t,o,n)||this}t.EditorRedoButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignJustify",e,t,o,n)||this}t.EditorAlignJustifyButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignRight",e,t,o,n)||this}t.EditorAlignRightButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignCenter",e,t,o,n)||this}t.EditorAlignCenterButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignLeft",e,t,o,n)||this}t.EditorAlignLeftButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),n=(Object.defineProperty(r.prototype,"message",{get:function(){var e=this.state,t=e.rows,e=e.cols;return"Create a "+(-1<t?t+1:"")+" "+(-1<e?"x":"")+" "+(-1<e?e+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),r.prototype.selected=function(e){var t=this.state,o=t.rows,n=t.cols,t=Math.floor(e/this.cols),e=e%this.cols;return t<=o&&e<=n},r.prototype.setState=function(e){var t=Math.floor(e/this.cols),e=e%this.cols;this.state={rows:t,cols:e}},r.prototype.resetState=function(){this.state={rows:-1,cols:-1}},r.prototype.insertTable=function(){this.cellClick.emit(this.state)},r.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"tableWizardClick",void 0),n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],r));function r(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}t.PopupTableGridComponent=n},function(e,t){e.exports=C},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(24),d=o(23),s=o(4),c=o(78),p=o(9),u=o(3),m=o(2),h=o(7),f=o(28),g=o(15),h=(r=s.ToolBarToolComponent,i.__extends(_,r),(n=_).prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(_.prototype,"outerWidth",{get:function(){if(this.element)return p.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),_.prototype.toggle=function(e){this.open=void 0===e?!this.open:e,this.destroyPopup(),this.open&&this.createPopup()},_.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:f.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor})},_.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},_.prototype.onCellClick=function(e){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",e)},_.prototype.canFocus=function(){return!this.disabled},_.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},_.prototype.handleKey=function(e){return e.keyCode===g.Keys.Space||e.keyCode===g.Keys.Enter||!(this.tabIndex=-1)},_.prototype.onTableWizardClick=function(){},_.prototype.createPopup=function(){var e="rtl"===this.editor.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:{horizontal:e,vertical:"bottom"},animate:!0,content:this.popupGridTemplate,popupAlign:{horizontal:e,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});e=this.popupRef.popupElement;e.style.width="190px",e.style.height="164px",e.setAttribute("dir",this.editor.direction)},_.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},_.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"element",void 0),i.__decorate([a.ViewChild("overflowElement",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"overflowElement",void 0),i.__decorate([a.ViewChild("popupGridTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupGridTemplate",void 0),n=i.__decorate([a.Component({providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="toggle()"\n (blur)="onBlur()"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="openDialog()">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[u.EditorComponent,m.EditorLocalizationService,c.PopupService,h.DialogService])],_));function _(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.localization=t,i.popupService=o,i.dialogService=n,i.open=!1,i.buttonBlurred=new a.EventEmitter,i.cellClicked=new a.EventEmitter,i.subs=i.editor.stateChange.subscribe(function(e){e=e.insertTable;i.disabled=e.disabled}),i.subs.add(i.buttonBlurred.pipe(d.concatMap(function(){return l.interval(200).pipe(d.take(1),d.takeUntil(i.cellClicked))})).subscribe(function(){i.toggle(!1)})),i}t.EditorInsertTableButtonComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(9),s=o(3),c=o(2),p=o(7),u=o(29),m=o(20),o=o(5),o=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.fontFamilyDropDownList||t.fontFamilyDropDownList.dropDownList.isOpen)||null===e.dataItem.fontName},setTimeout(function(){t.defaultItem={text:t.title,fontName:null},t.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(function(e){e=e.style;t.value=d.getUniqueStyleValues(e.selected,"font-family")||null,t.disabled=e.disabled})},h.prototype.onValueChange=function(t){d.isPresent(t)&&(this.editor.exec("fontFamily",t),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(e){return e.fontName===t})))},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontFamilyButton.nativeElement:this.fontFamilyDropDownList).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],h.prototype,"data",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],h.prototype,"valueChange",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("element",{read:m.FontFamilyDropDownListComponent,static:!1}),i.__metadata("design:type",m.FontFamilyDropDownListComponent)],h.prototype,"fontFamilyDropDownList",void 0),i.__decorate([a.ViewChild("fontFamilyButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"fontFamilyButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService,o.EditorToolsService])],h));function h(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.dialogService=t,i.localization=o,i.toolsService=n,i.disabled=!1,i.tabindex=-1,i.valueChange=new a.EventEmitter,i._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],i}t.EditorFontFamilyComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(9),s=o(3),c=o(2),p=o(7),u=o(27),m=o(19),o=o(5),o=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.fontSizeDropDownList||t.fontSizeDropDownList.dropDownList.isOpen)||null===e.dataItem.size},setTimeout(function(){t.defaultItem={text:t.title,size:null},t.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(function(e){e=e.style;t.value=(d.getUniqueStyleValues(e.selected,"font-size").match(/\d+/g)||[null])[0],t.disabled=e.disabled})},h.prototype.onValueChange=function(t){d.isPresent(t)&&(this.editor.exec("fontSize",t),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(e){return e.size===parseInt(t,10)})))},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontSizeButton.nativeElement:this.fontSizeDropDownList).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],h.prototype,"data",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],h.prototype,"valueChange",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("element",{read:m.FontSizeDropDownListComponent,static:!1}),i.__metadata("design:type",m.FontSizeDropDownListComponent)],h.prototype,"fontSizeDropDownList",void 0),i.__decorate([a.ViewChild("fontSizeButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"fontSizeButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService,o.EditorToolsService])],h));function h(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.dialogService=t,i.localization=o,i.toolsService=n,i.disabled=!1,i.tabindex=-1,i.valueChange=new a.EventEmitter,i._data=[{text:"8px",size:8},{text:"10px",size:10},{text:"12px",size:12},{text:"14px",size:14},{text:"18px",size:18},{text:"24px",size:24},{text:"36px",size:36}],i}t.EditorFontSizeComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(7),s=o(9),c=o(3),p=o(2),u=o(31),m=o(21),o=o(5),o=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var o=this;this.itemDisabled=function(e){return!(o.overflows||!o.formatDropDownList||o.formatDropDownList.dropDownList.isOpen)||null===e.dataItem.tag},setTimeout(function(){o.defaultItem={text:o.title,tag:null},o.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(function(e){var t=e.format,e=o.data.findIndex(function(e){return e.tag===t.selected.tag});o.value=-1!==e?t.selected.tag:null,o.disabled=t.disabled})},h.prototype.onValueChange=function(t){s.isPresent(t)&&(this.editor.exec("format",{tag:t}),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(e){return e.tag===t})))},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(h.prototype,"outerWidth",{get:function(){var e=this.formatDropDownList.element;if(e)return s.outerWidth(e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.formatButton.nativeElement:this.formatDropDownList).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],h.prototype,"data",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],h.prototype,"valueChange",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("formatDropDownList",{static:!1}),i.__metadata("design:type",m.FormatDropDownListComponent)],h.prototype,"formatDropDownList",void 0),i.__decorate([a.ViewChild("formatButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"formatButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[c.EditorComponent,d.DialogService,p.EditorLocalizationService,o.EditorToolsService])],h));function h(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.dialogService=t,i.localization=o,i.toolsService=n,i.disabled=!1,i.tabindex=-1,i.valueChange=new a.EventEmitter,i._data=[{text:"Paragraph",tag:"p"},{text:"Quotation",tag:"blockquote"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],i}t.EditorFormatComponent=o},function(e,t){e.exports=h},function(e,t){e.exports=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(84),a=o(16),l=o(4),d=o(14),s=o(7),c=o(83),p=o(13),u=o(13),m=o(3),h=o(34),f=o(35),g=o(33),_=o(31),b=o(30),v=o(29),y=o(28),C=o(82),k=o(81),w=o(80),E=o(18),T=o(79),S=o(77),x=o(76),D=o(75),B=o(74),I=o(73),A=o(72),O=o(71),M=o(70),z=o(69),L=o(68),P=o(67),F=o(66),R=o(65),j=o(64),W=o(63),H=o(62),V=o(61),N=o(60),$=o(59),U=o(58),J=o(57),K=o(56),G=o(55),q=o(54),Z=o(53),X=o(52),Q=o(51),Y=o(50),ee=o(49),te=o(48),oe=o(47),ne=o(46),ie=o(45),re=o(44),ae=o(43),le=o(42),de=o(21),se=o(20),ce=o(19),pe=o(27),ue=o(41),me=o(40),o=o(39),o=[x.EditorAlignLeftButtonDirective,D.EditorAlignCenterButtonDirective,B.EditorAlignRightButtonDirective,I.EditorAlignJustifyButtonDirective,K.EditorInsertFileButtonDirective,A.EditorRedoButtonDirective,O.EditorUndoButtonDirective,M.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,L.EditorOutdentButtonDirective,P.EditorCreateLinkButtonDirective,F.EditorUnlinkButtonDirective,R.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,W.EditorViewSourceButtonDirective,H.EditorBoldButtonDirective,V.EditorItalicButtonDirective,N.EditorUnderlineButtonDirective,$.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,J.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,q.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,ee.EditorAddRowAfterButtonDirective,te.EditorDeleteColumnButtonDirective,oe.EditorDeleteRowButtonDirective,ne.EditorDeleteTableButtonDirective,ie.EditorMergeCellsButtonDirective,re.EditorSplitCellButtonDirective,le.CustomMessagesComponent,ae.LocalizedMessagesDirective,ue.DropDownToolDirective,me.EditorPrintDirective,o.EditorSelectAllButtonDirective],T=[k.EditorFontSizeComponent,w.EditorFontFamilyComponent,C.EditorFormatComponent,E.EditorColorPickerComponent,T.EditorInsertTableButtonComponent],y=[g.FileLinkDialogComponent,h.ImageDialogComponent,f.SourceDialogComponent,_.FormatDialogComponent,b.ColorPickerDialogComponent,v.FontFamilyDialogComponent,pe.FontSizeDialogComponent,y.InsertTableDialogComponent],ce=[S.PopupTableGridComponent,de.FormatDropDownListComponent,se.FontFamilyDropDownListComponent,ce.FontSizeDropDownListComponent],u=n.__decorate([i.NgModule({declarations:[m.EditorComponent,o,T,y,ce],entryComponents:[y],exports:[m.EditorComponent,o,T,l.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,ce],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,p.ColorPickerModule,s.DialogModule,d.DropDownsModule,u.NumericTextBoxModule,l.ToolBarModule,u.TextBoxModule]})],he);function he(){}t.EditorModule=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!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 padding: 8px;\n}\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\ndiv.ProseMirror {\n position: relative;\n min-height: 100%;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\ndiv.ProseMirror:focus {\n outline: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror li {\n position: relative;\n}\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\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.ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* image resizing */\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',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 .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px;\n top: 0;\n 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 /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),i=o(8);t.getToolbarState=function(t,o){return{alignCenter:{selected:i.isAligned(t,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(t,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(t,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(t,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(t,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(t)},format:{selected:i.activeNode(t),disabled:!1},indent:{selected:!1,disabled:!(i.canIndentAsListItem(t,t.schema.nodes.list_item)||i.canBeIndented(t,i.indentRules))},insertOrderedList:{selected:i.hasNode(t,t.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(t,t.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(t,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(t,i.link)},outdent:{selected:!1,disabled:!(i.canOutdentAsListItem(t,i.outdentRules)||i.canBeIndented(t,i.outdentRules))},redo:{selected:!1,disabled:!i.redo(t)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:i.hasMark(t,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(t,t.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(t,i.subscript),disabled:!1},superscript:{selected:i.hasMark(t,i.superscript),disabled:!1},underline:{selected:i.hasMark(t,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(t)},createLink:{selected:!1,get disabled(){var e=t.selection.empty;return o&&o.applyToWord&&e?i.expandSelection(t,function(){},o).state.selection.empty:e}},insertFile:{selected:!1,disabled:t.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},print:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!i.addColumnBefore(t)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(t)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(t)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(t)},deleteRow:{selected:!1,disabled:!i.deleteRow(t)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(t)},mergeCells:{selected:!1,disabled:!i.mergeCells(t)},splitCell:{selected:!1,disabled:!i.splitCell(t)},deleteTable:{selected:!1,disabled:!i.deleteTable(t)}}},t.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},t.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var h=t(8),f=t(37),g=t(11),c=t(22),_=t(36);r.insertTable=function(n){return function(e,t){var o=f.createTable(e.schema.nodes,n.rows,n.cols);o&&h.insertNode(o,!0)(e,t)}};function a(e,t,o,i,r,a){var l,d=t.left,s=t.right,n=0<o?-1:0;if(i.node.descendants(function(e,o){var n;r(e)&&(n=-1,e.firstChild.descendants(function(e,t){!g.isTableCell(e)&&!g.isTableHeaderCell(e)||(n+=1)!==s&&n!==d||(t=new h.Selection(a.resolve(t+o+i.start),a.resolve(t+o+i.start)),l=f.selectedRect(t))}))}),!l)return e;for(var c=0;c<l.map.height;c++){var p,u,m=c*l.map.width+o;0<o&&o<l.map.width&&l.map.map[m-1]===l.map.map[m]?(u=l.map.map[m],p=l.table.nodeAt(u),e.setNodeMarkup(e.mapping.map(l.tableStart+u),null,f.addColSpan(p.attrs,o-l.map.colCount(u))),c+=p.attrs.rowspan-1):(m=l.table.nodeAt(l.map.map[m+n]).type,u=l.map.positionAt(c,o,l.table),e.insert(e.mapping.map(l.tableStart+u),m.createAndFill()))}return e}function i(e,t,i,r,a){var l,d=t.right,s=t.left;if(i.node.descendants(function(e,o){var n;r(e)&&(n=-1,e.firstChild.descendants(function(e,t){(g.isTableCell(e)||g.isTableHeaderCell(e))&&(n+=1)>=s&&n<d&&(e=a.resolve(t+o+i.start+e.nodeSize),e=new h.Selection(e,e),l=f.selectedRect(e))}))}),l)for(var o=l.right-1;function(e,t,o){for(var n=t.map,i=t.table,r=t.tableStart,a=0;a<n.height;){var l=a*n.width+o,d=n.map[l],s=i.nodeAt(d);if(o>0&&n.map[l-1]===d||o<n.width-1&&n.map[l+1]===d)e.setNodeMarkup(e.mapping.map(r+d),null,f.removeColSpan(s.attrs,o-n.colCount(d)));else{var c=e.mapping.map(r+d);e.delete(c,c+s.nodeSize)}a+=s.attrs.rowspan}}(e,l,o),o!==l.left;o--)l.table=l.tableStart?e.doc.nodeAt(l.tableStart-1):e.doc,l.map=c.TableMap.get(l.table)}r.addColumnBefore=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),n=f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable),i=a(e.tr,o,o.left,n,g.isTableHead,e.doc),i=a(i,o,o.left,n,g.isTableBody,e.doc),t(a(i,o,o.left,n,g.isTableFoot,e.doc))),!0);var o,n,i},r.addColumnAfter=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),n=f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable),i=a(e.tr,o,o.right,n,g.isTableHead,e.doc),i=a(i,o,o.right,n,g.isTableBody,e.doc),t(a(i,o,o.right,n,g.isTableFoot,e.doc))),!0);var o,n,i};function n(e,t,o){for(var n=t.map,i=t.tableStart,r=t.table,a=i,l=0;l<o;l++)a+=r.child(l).nodeSize;var d=[],s=0<o?-1:0;f.rowIsHeader(n,r,o+s)&&(s=0===o||o===n.height?null:0);for(var c,p,u=0,m=n.width*o;u<n.width;u++,m++)0<o&&o<n.height&&n.map[m]===n.map[m-n.width]?(c=n.map[m],p=r.nodeAt(c).attrs,e.setNodeMarkup(i+c,null,f.setAttr(p,"rowspan",p.rowspan+1)),u+=p.colspan-1):(p=null==s?f.tableNodeTypes(r.type.schema).cell:r.nodeAt(n.map[m+s*n.width]).type,d.push(p.createAndFill()));return e.insert(a,f.tableNodeTypes(r.type.schema).row.create(null,d)),e}r.addRowBefore=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),t(n(e.tr,o,o.top))),!0);var o},r.addRowAfter=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),t(n(e.tr,o,o.bottom))),!0);var o},r.deleteColumn=function(e,t){if(!f.isInTable(e))return!1;if(t){var o=f.selectedRect(e.selection);if(0===o.left&&o.right===o.map.width)return r.deleteTable(e,t);var n=f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable),e=e.tr;i(e,o,n,g.isTableFoot,e.doc),i(e,o,n,g.isTableBody,e.doc),i(e,o,n,g.isTableHead,e.doc),t(e)}return!0};r.deleteRow=function(e,t){if(!f.isInTable(e))return!1;if(t){var o=f.selectedRect(e.selection),n=e.tr;if(0===o.top&&o.bottom===o.map.height)return 1===f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable).node.childCount?r.deleteTable(e,t):l(function(e){return e.type.name===o.table.type.name})(e,t),!0;for(var i=o.bottom-1;function(e,t,o){for(var n=t.map,i=t.table,r=t.tableStart,a=0,l=0;l<o;l++)a+=i.child(l).nodeSize;var t=a+i.child(o).nodeSize,d=e.mapping.maps.length;e.delete(a+r,t+r);for(var s=0,c=o*n.width;s<n.width;s++,c++){var p,u,m=n.map[c];0<o&&m===n.map[c-n.width]?(u=i.nodeAt(m).attrs,e.setNodeMarkup(e.mapping.slice(d).map(m+r),null,f.setAttr(u,"rowspan",u.rowspan-1)),s+=u.colspan-1):o<n.width&&m===n.map[c+n.width]&&(u=(p=i.nodeAt(m)).type.create(f.setAttr(p.attrs,"rowspan",p.attrs.rowspan-1),p.content),m=n.positionAt(o+1,s,i),e.insert(e.mapping.slice(d).map(r+m),u),s+=p.attrs.colspan-1)}}(n,o,i),i!==o.top;i--)o.table=o.tableStart?n.doc.nodeAt(o.tableStart-1):n.doc,o.map=c.TableMap.get(o.table);t(n)}return!0},r.mergeCells=function(e,t){var o=e.selection;if(!(o instanceof _.CellSelection)||o.$anchorCell.pos===o.$headCell.pos)return!1;var n=f.selectedRect(e.selection),i=n.map;if(f.cellsOverlapRectangle(i,n))return!1;if(t){for(var r=e.tr,a={},l=h.Fragment.empty,d=void 0,s=void 0,c=n.top;c<n.bottom;c++)for(var p=n.left;p<n.right;p++){var u=i.map[c*i.width+p],m=n.table.nodeAt(u);a[u]||(a[u]=!0,null===d?(d=u,s=m):(f.isCellEmpty(m)||(l=l.append(m.content)),u=r.mapping.map(u+n.tableStart),r.delete(u,u+m.nodeSize)))}r.setNodeMarkup(d+n.tableStart,null,f.setAttr(f.addColSpan(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),"rowspan",n.bottom-n.top)),l.size&&(o=d+1+s.content.size,e=f.isCellEmpty(s)?d+1:o,r.replaceWith(e+n.tableStart,o+n.tableStart,l)),r.setSelection(new _.CellSelection(r.doc.resolve(d+n.tableStart))),t(r)}return!0},r.splitCell=function(e,t){var o=f.tableNodeTypes(e.schema);return f.splitCellWithType(function(e){e=e.node;return o[e.type.spec.tableRole]})(e,t)};var l=function(r){return function(e,t){for(var o=e.selection.$anchor,n=o.depth;0<n;n--){var i=o.node(n);if(r(i))return t&&((i=e.tr).delete(o.before(n),o.after(n)).scrollIntoView(),t(i)),!0}return!1}};r.deleteTable=l(g.isTable)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){return r.alignBlocks(r.alignRemoveRules)(e,t)}var i=o(0),r=o(8),a=o(88);t.editorCommands=Object.assign({},{bold:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.bold,{applyToWord:e}))},cleanFormatting:function(e){return r.cleanFormatting(e)},createLink:function(e){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:e.value,applyToWord:e.applyToWord})},fontFamily:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-family",value:e.value,applyToWord:e.applyToWord})},fontSize:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-size",value:e.value+"px",applyToWord:e.applyToWord})},insertFile:function(e){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:e,applyToWord:e.applyToWord})},insertText:function(e){return r.insertText(e)},italic:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.italic,{applyToWord:e}))},strikethrough:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.strikethrough,{applyToWord:e}))},subscript:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.subscript,{applyToWord:e}))},superscript:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.superscript,{applyToWord:e}))},underline:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.underline,{applyToWord:e}))},unlink:function(){return r.removeLink(r.link)},foreColor:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"color",value:e.value,applyToWord:e.applyToWord})},backColor:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"background-color",value:e.value,applyToWord:e.applyToWord})},selectAll:function(){return function(e,t){return r.selectAll(e,t)}}},{alignCenter:function(){return function(e,t){return(r.isAligned(e,r.alignCenterRules)?n:r.alignBlocks(r.alignCenterRules))(e,t)}},alignJustify:function(){return function(e,t){return(r.isAligned(e,r.alignJustifyRules)?n:r.alignBlocks(r.alignJustifyRules))(e,t)}},alignLeft:function(){return function(e,t){return(r.isAligned(e,r.alignLeftRules)?n:r.alignBlocks(r.alignLeftRules))(e,t)}},alignRight:function(){return function(e,t){return(r.isAligned(e,r.alignRightRules)?n:r.alignBlocks(r.alignRightRules))(e,t)}},format:function(e){return r.formatBlockElements(e.tag)},getHTML:function(){return r.getHtml},indent:function(){return r.indent},insertImage:function(e){return r.insertImage(e)},insertOrderedList:function(){return r.toggleOrderedList},insertUnorderedList:function(){return r.toggleUnorderedList},outdent:function(){return r.outdent},redo:function(){return r.redo},setHTML:function(e){var t=e.content,e=e.parseOptions;return r.setHtml(t,"setHTML",e)},undo:function(){return r.undo}},{insertTable:function(e){return a.insertTable(e)},addColumnBefore:function(){return a.addColumnBefore},addColumnAfter:function(){return a.addColumnAfter},addRowBefore:function(){return a.addRowBefore},addRowAfter:function(){return a.addRowAfter},deleteRow:function(){return a.deleteRow},deleteColumn:function(){return a.deleteColumn},mergeCells:function(){return a.mergeCells},splitCell:function(){return a.splitCell},deleteTable:function(){return a.deleteTable}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(e){var t=i.__assign({},e);return 1!==e.colspan?t.colspan=e.colspan:t.colspan=null,1!==e.rowspan?t.rowspan=e.rowspan:t.rowspan=null,r.removeEmptyEntries(t)}var i=o(0),r=o(9),o=o(11);t.tableNodes={table:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["cellspacing","cellpadding"])),content:"(table_body | table_head | table_foot | table_colgroup)+",tableRole:"table",isolating:!0,group:"block",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"table"}],toDOM:function(e){return["table",r.removeEmptyEntries(e.attrs),0]}},table_row:{content:"(table_cell | table_header)*",attrs:i.__assign({},o.commonAttributes()),tableRole:"row",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tr"}],toDOM:function(e){return["tr",r.removeEmptyEntries(e.attrs),0]}},table_cell:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"td"}],toDOM:function(e){return["td",n(e.attrs),0]}},table_header:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers","abbr","scope"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"header_cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"th"}],toDOM:function(e){return["th",n(e.attrs),0]}},table_body:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tbody"}],toDOM:function(e){return["tbody",r.removeEmptyEntries(e.attrs),0]}},table_foot:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tfoot"}],toDOM:function(e){return["tfoot",r.removeEmptyEntries(e.attrs),0]}},table_head:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"thead"}],toDOM:function(e){return["thead",r.removeEmptyEntries(e.attrs),0]}},table_col:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),selectable:!1,atom:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"col"}],toDOM:function(e){return["col",r.removeEmptyEntries(e.attrs)]}},table_colgroup:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),content:"table_col*",selectable:!1,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"colgroup"}],toDOM:function(e){return["colgroup",r.removeEmptyEntries(e.attrs),0]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(11);t.semanticTagNames=["article","main","nav","header","footer","aside","section"],t.semanticNodes=t.semanticTagNames.reduce(function(e,t){var o;return Object.assign(e,((e={})[t]=(o=t,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:o,getAttrs:i.getAttributes}],toDOM:function(e){return i.hasAttrs(e.attrs)?[o,i.getAttrs(e.attrs),i.hole]:[o,i.hole]}}),e))},{})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1638192544,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);t.EditorComponent=n.EditorComponent;n=o(85);t.EditorModule=n.EditorModule;n=o(38);t.schema=n.schema,t.Schema=n.Schema;o=o(8);t.EditorState=o.EditorState,t.Plugin=o.Plugin,t.PluginKey=o.PluginKey,t.Transaction=o.Transaction,t.EditorView=o.EditorView,t.Decoration=o.Decoration,t.DecorationSet=o.DecorationSet,t.NodeType=o.NodeType,t.Node=o.Node,t.MarkType=o.MarkType,t.Mark=o.Mark,t.InputRule=o.InputRule,t.inputRules=o.inputRules,t.wrappingInputRule=o.wrappingInputRule,t.textblockTypeInputRule=o.textblockTypeInputRule,t.keymap=o.keymap,t.baseKeymap=o.baseKeymap,t.history=o.history,t.dropCursor=o.dropCursor,t.gapCursor=o.gapCursor,t.tableNodes=o.tableNodes,t.getSelectionText=o.getSelectionText,function(e){for(var t in e)r(t,e[t])}(t)}],i={},n.m=o,n.c=i,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=94)}}});
5
+ System.register("@progress/kendo-angular-editor",["@progress/kendo-editor-common","tslib","@angular/core","@angular/common","@angular/forms","@progress/kendo-angular-toolbar","@progress/kendo-angular-dropdowns","@progress/kendo-angular-dialog","@progress/kendo-angular-buttons","@progress/kendo-angular-inputs","rxjs","rxjs/operators","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-popup"],function(r){var a,l,d,s,c,p,u,m,h,f,g,_,b,v,y,C;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){s=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){m=t(e)},function(e){h=t(e)},function(e){f=t(e)},function(e){g=t(e)},function(e){_=t(e)},function(e){b=t(e)},function(e){v=t(e)},function(e){y=t(e)},function(e){C=t(e)}],execute:function(){function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o,i;o=[function(e,t){e.exports=l},function(e,t){e.exports=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),o=o(10),o=(n=o.LocalizationService,i.__extends(a,n),i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],a));function a(e,t,o){return n.call(this,e,t,o)||this}t.EditorLocalizationService=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(0),l=o(1),i=o(16),c=o(24),p=o(23),r=o(4),a=o(7),u=o(15),m=o(8),d=o(93),h=o(92),f=o(38),g=o(89),_=o(87),b=o(9),v=o(35),y=o(34),C=o(33),k=o(10),w=o(2),E=o(86),T=o(32),o=o(5),S={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!1,removeMsClasses:!1,removeMsStyles:!1,stripTags:[""]},x=b.conditionallyExecute(m.removeComments),D=b.conditionallyExecute(m.sanitize),o=(n=B,Object.defineProperty(B.prototype,"value",{get:function(){var e=this._view?this.getSource():this._value;return"<p></p>"===e?this._value&&"":e},set:function(e){this._previousValue!==e&&(this._value=e,this._previousValue=e,this._view)&&(this.iframe&&!this.container.element.nativeElement.contentWindow||this.exec("setHTML",{content:this._value||"",parseOptions:{preserveWhitespace:this.preserveWhitespace}}))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(_.disabledToolBarState):this.stateChange.next(_.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"readonly",{get:function(){return this._readonly},set:function(e){var t;this._readonly=e||!1,this._view&&(t=void 0,e=(t=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode,this._view.dom.contains(e)&&t.getSelection().removeAllRanges(),t=this._view.state.doc,t=this._view.state.tr.setSelection(m.TextSelection.create(t,1)),this._view.dispatch(t)),this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(_.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(_.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"schema",{get:function(){return this._schema},set:function(e){if(l.isDevMode){if(!(e instanceof m.Schema))throw new Error(T.EditorErrorMessages.schemaType);if(this._view)throw new Error(T.EditorErrorMessages.setSchemaOnce)}this._schema=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"plugins",{get:function(){return this._plugins},set:function(e){if(l.isDevMode){if("function"!=typeof e)throw new Error(T.EditorErrorMessages.pluginsCallbackType(e));if(this._view)throw new Error(T.EditorErrorMessages.setPluginsOnce)}this._plugins=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(l.isDevMode&&this._view)throw new Error(T.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isIE",{get:function(){return this.iframe&&b.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minWidth",{get:function(){var e=this.resizable;return e.minWidth?e.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxWidth",{get:function(){var e=this.resizable;return e.maxWidth?e.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minHeight",{get:function(){var e=this.resizable;return e.minHeight?e.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxHeight",{get:function(){var e=this.resizable;return e.maxHeight?e.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"selectionText",{get:function(){return this._view&&this._view.state?m.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})),this.subs.add(this.toolsService.needsCheck.subscribe(function(){return t.cdr.markForCheck()}))},B.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},B.prototype.ngOnChanges=function(e){var t=this;e.iframe&&!e.iframe.isFirstChange()&&this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return t.initialize()}),e.resizable&&!e.resizable.isFirstChange()&&this.normalizeSize()},B.prototype.setDisabledState=function(e){this.disabled=e},B.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},B.prototype.exec=function(t,e){"setHTML"===t&&"string"==typeof e?e={content:e,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some(function(e){return e===t})&&(e={value:e,applyToWord:this.applyToWord}),g.editorCommands[t](e)(this._view.state,this._view.dispatch,this._view)},B.prototype.openDialog=function(e){var t={createLink:{content:C.FileLinkDialogComponent},insertFile:{content:C.FileLinkDialogComponent},insertImage:{content:y.ImageDialogComponent},viewSource:{content:v.SourceDialogComponent,height:400,width:500}},t=Object.assign({appendTo:this.dialogContainer},t[e]);this.toolbar.toggle(!1);t=this.dialogService.open(t).content.instance;"createLink"!==e&&"insertFile"!==e||(t.command=e),t.editor=this,t.setData(this._view.state,{applyToWord:this.applyToWord})},B.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},B.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},B.prototype.getSource=function(){return m.getHtml(this._view.state)},B.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},B.prototype.writeValue=function(e){this.value=null===e?void 0:e},B.prototype.registerOnChange=function(e){this.onChangeCallback=e},B.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},B.prototype.isEmpty=function(){return!1},B.prototype.initialize=function(){var e,o,t,n,i,r,a,l,d=this;u.isDocumentAvailable()&&(e=this.schema||f.schema,l=(o=this).container.element.nativeElement,t=m.parseContent((this.value||"").trim(),e,{preserveWhitespace:this.preserveWhitespace}),this.iframe?((i=(n=l.contentDocument).createElement("meta")).setAttribute("charset","utf-8"),n.head.appendChild(i),[E.defaultStyle,E.tablesStyles,"rtl"===this.dir?E.rtlStyles:void 0].forEach(function(e){var t;e&&((t=n.createElement("style")).appendChild(n.createTextNode(e)),n.head.appendChild(t))}),i=n.createElement("div"),n.body.appendChild(i)):(i=document.createElement("div"),l.appendChild(i)),i=[new m.Plugin({key:new m.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:d.readonly?"0":""}}}}),new m.Plugin({key:new m.PluginKey("toolbar-tools-update"),view:function(){return{update:function(e){d.disabled||d.stateChange.next(d.readonly?_.disabledToolBarState:_.getToolbarState(e.state,{applyToWord:d.applyToWord}))}}}}),new m.Plugin({key:new m.PluginKey("editor-filter-disabled-state"),filterTransaction:function(){return!d.disabled}}),m.history(),m.keymap(m.buildListKeymap(e)),m.keymap(m.buildKeymap(e,{applyToWord:this.applyToWord})),m.keymap(m.baseKeymap),m.gapCursor(),m.imageResizing()],this.placeholder&&i.push(m.placeholder(this.placeholder)),r=m.EditorState.create({schema:e,doc:t,plugins:b.isPresent(this.plugins)?this.plugins(i):i}),this.iframe?this.viewMountElement=l.contentDocument.querySelector("div"):this.viewMountElement=l.querySelector("div"),this.ngZone.runOutsideAngular(function(){d._view=new m.EditorView({mount:d.viewMountElement},{state:r,editable:function(){return!d.readonly},dispatchTransaction:function(e){this.updateState(this.state.apply(e));var t=o.value;m.hasSameMarkup(t,o._previousValue,this.state.schema)||(o._previousValue=t,o.ngZone.run(function(){return o.valueModified.next(t)}))},transformPastedHTML:function(e){var t=s.__assign({},S,d.pasteCleanupSettings),o=b.pipe(x(t.removeHtmlComments),D(t.removeInvalidHTML))(e),e=function(e){if("all"===e.removeAttributes)return{"*":m.removeAttribute};var t=b.removeEmptyEntries({style:e.removeMsStyles?m.sanitizeStyleAttr:void 0,class:e.removeMsClasses?m.sanitizeClassAttr:void 0});return e.removeAttributes.reduce(function(e,t){return s.__assign({},e,((e={})[t]=m.removeAttribute,e))},t)}(t);return m.pasteCleanup(o,{convertMsLists:t.convertMsLists,stripTags:t.stripTags.join("|"),attributes:e})}})}),this._view&&(l=void 0,a=this.element.nativeElement.querySelector(".k-editor-content").classList,l=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(c.fromEvent(l,"focusin").subscribe(function(){d.readonly&&a.add("k-state-focused"),d.focusChangedProgrammatically&&!d.shouldEmitFocus||(d.ngZone.run(function(){return d.onFocus.emit()}),d.shouldEmitFocus=!1)})),this.subs.add(c.fromEvent(l,"focusout").subscribe(function(){d.readonly&&a.remove("k-state-focused"),d.focusChangedProgrammatically||d.ngZone.run(function(){return d.onBlur.emit()})}))),this.subs.add(this.stateChange.subscribe(function(){(d.userToolBarComponent||d).cdr.detectChanges()})),this.subs.add(c.merge(this.valueModified.pipe(p.filter(function(){return 0<d.updateInterval}),p.auditTime(this.updateInterval)),this.valueModified.pipe(p.filter(function(){return 0===d.updateInterval}))).subscribe(function(e){d.onChangeCallback(e),d.valueChange.emit(e),d.cdr.markForCheck()})),this.subs.add(c.fromEvent(this.viewMountElement,"keyup").pipe(p.map(function(e){return e.keyCode}),p.filter(function(e){return 121===e}),p.map(function(){return d.userToolBarElement||d.defaultToolbar})).subscribe(function(e){return e.nativeElement.focus()})),this.subs.add(c.fromEvent(this.viewMountElement,"blur").pipe(p.filter(function(e){return!d.viewMountElement.contains(e.relatedTarget)})).subscribe(function(){return d.onTouchedCallback()})))},B.prototype.normalizeSize=function(){var e,t=this;"object"!=typeof this.resizable||this._styleObserver||(e=this.element.nativeElement,this._styleObserver=new MutationObserver(function(){t.ngZone.runOutsideAngular(function(){return t.normalizeProperties(e)})}),this._styleObserver.observe(e,{attributeFilter:["style"]}))},B.prototype.normalizeProperties=function(i){var e=Object.keys(this.resizable),r=parseInt(i.style.width,10),a=parseInt(i.style.height,10),l=this.resizable;e.forEach(function(e){var t=e.startsWith("min"),o=!t,n=e.endsWith("Width"),e=!n;t&&n?r<l.minWidth&&(i.style.width=l.minWidth+"px"):t&&e?a<l.minHeight&&(i.style.height=l.minHeight+"px"):o&&n?r>l.maxWidth&&(i.style.width=l.maxWidth+"px"):a>l.maxHeight&&(i.style.height=l.maxHeight+"px")})},s.__decorate([l.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"value",null),s.__decorate([l.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"disabled",null),s.__decorate([l.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"readonly",null),s.__decorate([l.Input(),s.__metadata("design:type",Boolean)],B.prototype,"iframe",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"applyToWord",void 0),s.__decorate([l.Input(),s.__metadata("design:type",m.Schema),s.__metadata("design:paramtypes",[m.Schema])],B.prototype,"schema",null),s.__decorate([l.Input(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[Function])],B.prototype,"plugins",null),s.__decorate([l.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"placeholder",null),s.__decorate([l.Input(),s.__metadata("design:type",Number)],B.prototype,"updateInterval",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"preserveWhitespace",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"pasteCleanupSettings",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Object)],B.prototype,"resizable",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],B.prototype,"valueChange",void 0),s.__decorate([l.Output("focus"),s.__metadata("design:type",l.EventEmitter)],B.prototype,"onFocus",void 0),s.__decorate([l.Output("blur"),s.__metadata("design:type",l.EventEmitter)],B.prototype,"onBlur",void 0),s.__decorate([l.HostBinding("class.k-editor"),s.__metadata("design:type",Boolean)],B.prototype,"hostClass",void 0),s.__decorate([l.HostBinding("class.k-editor-resizable"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"resizableClass",null),s.__decorate([l.HostBinding("class.k-state-disabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),s.__decorate([l.HostBinding("class.k-readonly"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isReadonly",null),s.__decorate([l.HostBinding("class.k-ie"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isIE",null),s.__decorate([l.HostBinding("attr.dir"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"dir",null),s.__decorate([l.HostBinding("attr.ariaDisabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"ariaDisabled",null),s.__decorate([l.HostBinding("style.minWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minWidth",null),s.__decorate([l.HostBinding("style.maxWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxWidth",null),s.__decorate([l.HostBinding("style.minHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minHeight",null),s.__decorate([l.HostBinding("style.maxHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxHeight",null),s.__decorate([l.ContentChild(r.ToolBarComponent,{static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"userToolBarComponent",void 0),s.__decorate([l.ContentChild(r.ToolBarComponent,{read:l.ElementRef,static:!1}),s.__metadata("design:type",l.ElementRef)],B.prototype,"userToolBarElement",void 0),s.__decorate([l.ViewChild("dialogsContainer",{read:l.ViewContainerRef,static:!0}),s.__metadata("design:type",l.ViewContainerRef)],B.prototype,"dialogContainer",void 0),s.__decorate([l.ViewChild("content",{read:l.ViewContainerRef,static:!1}),s.__metadata("design:type",l.ViewContainerRef)],B.prototype,"container",void 0),s.__decorate([l.ViewChild("defaultToolbar",{read:l.ElementRef,static:!1}),s.__metadata("design:type",l.ElementRef)],B.prototype,"defaultToolbar",void 0),s.__decorate([l.ViewChild("defaultToolbar",{read:r.ToolBarComponent,static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"defaultToolbarComponent",void 0),n=s.__decorate([l.Component({selector:"kendo-editor",providers:[w.EditorLocalizationService,o.EditorToolsService,{provide:k.LocalizationService,useExisting:w.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:i.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return n}),multi:!0},{provide:u.KendoInput,useExisting:l.forwardRef(function(){return n})}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."\n bold="Bold"\n i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."\n cleanFormatting="Clean formatting"\n i18n-createLink="kendo.editor.createLink|The title of the tool that creates hyperlinks."\n createLink="Insert link"\n i18n-dialogApply="kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs."\n dialogApply="Apply"\n i18n-dialogCancel="kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs."\n dialogCancel="Cancel"\n i18n-dialogInsert="kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs."\n dialogInsert="Insert"\n i18n-dialogUpdate="kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs."\n dialogUpdate="Update"\n i18n-fileText="kendo.editor.fileText|The caption for the file text in the insertFile dialog."\n fileText="Text"\n i18n-fileTitle="kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog."\n fileTitle="Title"\n i18n-fileWebAddress="kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog."\n fileWebAddress="Web address"\n i18n-fontFamily="kendo.editor.fontFamily|The title of the tool that changes the text font."\n fontFamily="Select font family"\n i18n-fontSize="kendo.editor.fontSize|The title of the tool that changes the text size."\n fontSize="Select font size"\n i18n-foreColor="kendo.editor.foreColor|The title of the tool that changes the text color."\n foreColor="Color"\n i18n-format="kendo.editor.format|The title of the tool that lets users choose block formats."\n format="Format"\n i18n-imageAltText="kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog."\n imageAltText="Alternate text"\n i18n-imageHeight="kendo.editor.imageHeight|The caption for the image height in the insertImage dialog."\n imageHeight="Height (px)"\n i18n-imageWebAddress="kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog."\n imageWebAddress="Web address"\n i18n-imageWidth="kendo.editor.imageWidth|The caption for the image width in the insertImage dialog."\n imageWidth="Width (px)"\n i18n-indent="kendo.editor.indent|The title of the tool that indents the content."\n indent="Indent"\n i18n-insertFile="kendo.editor.insertFile|The title of the tool that inserts links to files."\n insertFile="Insert file"\n i18n-insertImage="kendo.editor.insertImage|The title of the tool that inserts images."\n insertImage="Insert image"\n i18n-insertOrderedList="kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list."\n insertOrderedList="Insert ordered list"\n i18n-insertUnorderedList="kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list."\n insertUnorderedList="Insert unordered list"\n i18n-italic="kendo.editor.italic|The title of the tool that makes text italicized."\n italic="Italic"\n i18n-linkOpenInNewWindow="kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog."\n linkOpenInNewWindow="Open link in new window"\n i18n-linkText="kendo.editor.linkText|The caption for the link text in the createLink dialog."\n linkText="Text"\n i18n-linkTitle="kendo.editor.linkTitle|The caption for the link title in the createLink dialog."\n linkTitle="Title"\n i18n-linkWebAddress="kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog."\n linkWebAddress="Web address"\n i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."\n outdent="Outdent"\n i18n-print="kendo.editor.print|The title of the print tool."\n print="Print"\n i18n-redo="kendo.editor.redo|The title of the tool that undos the last action."\n redo="Redo"\n i18n-selectAll="kendo.editor.selectAll|The title of the tool that selects all content."\n selectAll="Select All"\n i18n-strikethrough="kendo.editor.strikethrough|The title of the tool that strikes through text."\n strikethrough="Strikethrough"\n i18n-subscript="kendo.editor.subscript|The title of the tool that makes text subscript."\n subscript="Subscript"\n i18n-superscript="kendo.editor.superscript|The title of the tool that makes text superscript."\n superscript="Superscript"\n i18n-underline="kendo.editor.underline|The title of the tool that underlines text."\n underline="Underline"\n i18n-unlink="kendo.editor.unlink|The title of the tool that removes hyperlinks."\n unlink="Remove Link"\n i18n-undo="kendo.editor.undo|The title of the tool that undos the last action."\n undo="Undo"\n i18n-viewSource="kendo.editor.viewSource|The title of the tool that shows the editor value as HTML."\n viewSource="View source"\n i18n-insertTable="kendo.editor.insertTable|The title of the tool that inserts table."\n insertTable="Insert Table"\n i18n-addColumnBefore="kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column."\n addColumnBefore="Add column before"\n i18n-addColumnAfter="kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column."\n addColumnAfter="Add column after"\n i18n-addRowBefore="kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row."\n addRowBefore="Add row before"\n i18n-addRowAfter="kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row."\n addRowAfter="Add row after"\n i18n-deleteColumn="kendo.editor.deleteColumn|The title of the tool that deletes a table column."\n deleteColumn="Delete column"\n i18n-deleteRow="kendo.editor.deleteRow|The title of the tool that deletes a table row."\n deleteRow="Delete row"\n i18n-deleteTable="kendo.editor.deleteTable|The title of the tool that deletes a table."\n deleteTable="Delete table"\n >\n </ng-container>\n\n <ng-content select="kendo-toolbar"></ng-content>\n <kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf="!iframe" #content [attr.dir]="direction" class="k-editor-content"></div>\n\n <div class="k-editor-content" *ngIf="iframe">\n <iframe #content frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),s.__metadata("design:paramtypes",[a.DialogService,k.LocalizationService,l.ChangeDetectorRef,l.NgZone,l.ElementRef,o.EditorToolsService])],B));function B(e,t,o,n,i,r){var a=this;this.dialogService=e,this.localization=t,this.cdr=o,this.ngZone=n,this.element=i,this.toolsService=r,this.iframe=!0,this.applyToWord=!1,this.updateInterval=100,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.hostClass=!0,this.stateChange=new c.BehaviorSubject(_.initialToolBarState),this.valueModified=new c.Subject,this._readonly=!1,this._placeholder="",this.afterViewInit=new c.Subject,this.contentAreaLoaded=new c.Subject,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},d.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.subs=c.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe(function(){return a.initialize()})}t.EditorComponent=o},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(24),i=n.__decorate([i.Injectable()],a);function a(){this.needsCheck=new r.Subject}t.EditorToolsService=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,n=o(0),n=(a=o(26).EditorCommandBase,n.__extends(i,a),i.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},i.prototype.pointerdownHandler=function(e){e.preventDefault()},i.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},i);function i(e,t,o,n,i){var r=a.call(this,e,t,o,n,i)||this;return r.command=e,r.button=t,r.editor=o,r.localization=n,r.toolsService=i,r}t.EditorCommandButton=n},function(e,t){e.exports=m},function(e,t){e.exports=a},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=t(15);o.outerWidth=function(e){var t=e.offsetWidth,e=getComputedStyle(e);return t+(parseFloat(e.marginLeft)||0+parseFloat(e.marginRight)||0)},o.removeEntries=function(o,t){return Object.keys(o).filter(function(e){return t(e)}).reduce(function(e,t){return Object.assign(e,((e={})[t]=o[t],e))},{})},o.removeEmptyEntries=function(t){return o.removeEntries(t,function(e){return null!==t[e]&&void 0!==t[e]&&""!==t[e]})},o.isEmpty=function(e){return 0===Object.keys(e).length},o.isNullOrUndefined=function(e){return null==e},o.isPresent=function(e){return!o.isNullOrUndefined(e)},o.detectIE=function(){if(!n.isDocumentAvailable())return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),e=e.indexOf("Trident/");return 0<t||0<e},o.safeString=function(e){return o.isNullOrUndefined(e)?"":e.toString()},o.first=function(e){return e[0]},o.last=function(e){return e[e.length-1]},o.unique=function(e){return Array.from(new Set(e))},o.split=function(t){return function(e){return e.split(t)}},o.trim=function(e){return e.trim()},o.filter=function(t){return function(e){return e.filter(t)}},o.toArray=function(e){return e instanceof Array?e:[e]},o.getUniqueStyleValues=function(e,t){if(e.hasNodesWithoutMarks)return"";e=e.marks.filter(function(e){return"style"===e.type.name}).map(function(e){return e.attrs.style}).map(o.safeString).map(o.split(";")).map(o.filter(function(e){return e.includes(t)})).map(function(e){return 0!==e.length?e:[t+": INVALID"]}).map(o.first).map(o.split(":")).map(o.last).map(o.trim).reduce(function(e,t){return-1<e.indexOf(t)?e:e.concat([t])},[]);return-1<e.indexOf("INVALID")||1!==e.length?"":e[0]},o.conditionallyExecute=function(o){return function(t){return function(e){return t?o(e):e}}},o.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce(function(e,t){return t(e)},e)}}},function(e,t){e.exports=y},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);t.hasAttrs=function(e,t){for(var o in e)if(o&&null!==e[o]&&o!==t)return!0;return!1},t.getAttrs=function(e,t){var o,n={};for(o in e)o&&null!==e[o]&&o!==t&&(n[o]=e[o]);return n},t.getAttributes=function(e){for(var t,o={},n=e.attributes,i=0;i<n.length;i++)o[(t=n[i]).name]=t.value;return o},t.serializeDOMAttrs=function(e){return Array.from(e.attributes).reduce(function(e,t){return Object.assign({},e,((e={})[t.name]=t.value,e))},{})},t.commonAttributes=function(){return n.__assign({},t.createDefaultAttributes(["class","id","style"]))},t.createDefaultAttributes=function(e){return n.__assign({},(e=void 0===e?[]:e).reduce(function(e,t){return n.__assign({},e,((e={})[t]={default:null},e))},{}))},t.hole=0,t.isSchemaNode=function(t){return function(e){return e.type.name===t}},t.isTable=t.isSchemaNode("table"),t.isTableBody=t.isSchemaNode("table_body"),t.isTableHead=t.isSchemaNode("table_head"),t.isTableFoot=t.isSchemaNode("table_foot"),t.isTableRow=t.isSchemaNode("table_row"),t.isTableCell=t.isSchemaNode("table_cell"),t.isTableHeaderCell=t.isSchemaNode("table_header")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,n=o(0),n=(a=o(26).EditorCommandBase,n.__extends(i,a),i.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},i.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},i);function i(e,t,o,n,i){var r=a.call(this,e,t,o,n,i)||this;return r.dialog=e,r.button=t,r.editor=o,r.localization=n,r.toolsService=i,r}t.EditorCommandDialog=n},function(e,t){e.exports=f},function(e,t){e.exports=u},function(e,t){e.exports=b},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(13),s=o(2),c=o(9),p=o(3),u=o(7),m=o(30),h=o(23),a=(r=l.ToolBarToolComponent,i.__extends(f,r),n=f,Object.defineProperty(f.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),f.prototype.ngOnInit=function(){var t=this;this.subs=this.editor.stateChange.subscribe(function(e){e=e.style;t.disabled=e.disabled})},f.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},f.prototype.handleValueChange=function(e){this.editor.exec(this.editorCommand,e)},f.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.handleValueChange(e.color)},f.prototype.onOpen=function(e){this.valueCache=e.value,e.reset()},f.prototype.onClose=function(e){var t=this;e.value||(e.value=this.valueCache),this.ngZone.onStable.pipe(h.take(1)).subscribe(function(){return t.editor.view.focus()})},Object.defineProperty(f.prototype,"outerWidth",{get:function(){if(this.element)return c.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),f.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:m.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,view:this.view})},f.prototype.canFocus=function(){return!this.disabled},f.prototype.focus=function(){this.tabindex=0,(this.overflows?this.colorPickerButton.nativeElement:this.colorPicker).focus()},f.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"icon",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],f.prototype,"paletteSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"editorCommand",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],f.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],f.prototype,"view",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],f.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],f.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("colorpicker",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],f.prototype,"element",void 0),i.__decorate([a.ViewChild("colorpicker",{read:d.ColorPickerComponent,static:!1}),i.__metadata("design:type",d.ColorPickerComponent)],f.prototype,"colorPicker",void 0),i.__decorate([a.ViewChild("colorPickerButton",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],f.prototype,"colorPickerButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[p.EditorComponent,s.EditorLocalizationService,u.DialogService,a.NgZone])],f));function f(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.localization=t,i.dialogService=o,i.ngZone=n,i.tabindex=-1,i.disabled=!1,i.view="palette",i}t.EditorColorPickerComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(14),n=(r.prototype.onValueChange=function(e){this.valueChange.emit(e)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}t.FontSizeDropDownListComponent=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(14),n=(r.prototype.onValueChange=function(e){this.valueChange.emit(e)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}t.FontFamilyDropDownListComponent=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(14),n=(r.prototype.onValueChange=function(e){this.valueChange.emit(e)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'blockquote\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}t.FormatDropDownListComponent=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,r,a,l,x=o(11);r="undefined"!=typeof WeakMap?(n=new WeakMap,i=function(e){return n.get(e)},function(e,t){return n.set(e,t),t}):(a=[],l=0,i=function(e){for(var t=0;t<a.length;t+=2)if(a[t]===e)return a[t+1]},function(e,t){return 10===l&&(l=0),a[l++]=e,a[l++]=t});function d(e){if(!(x.isTable(e)||x.isTableBody(e)||x.isTableHead(e)||x.isTableFoot(e)))throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,o=!1,n=0;n<e.childCount;n++){var i,r=e.child(n),a=0;if(o)for(var l=0;l<n;l++)for(var d=e.child(l),s=0;s<d.childCount;s++)l+(i=d.child(s)).attrs.rowspan>n&&(a+=i.attrs.colspan);for(s=0;s<r.childCount;s++)a+=(i=r.child(s)).attrs.colspan,1<i.attrs.rowspan&&(o=!0);-1===t?t=a:t!==a&&(t=Math.max(t,a))}return t}(e),o=e.childCount,n=[],i=0,r=null,a=[],l=0,d=t*o;l<d;l++)n[l]=0;for(var s=0,c=0;s<o;s++){var p=e.child(s);for(c++,l=0;;l++){for(;i<n.length&&0!==n[i];)i++;if(l===p.childCount)break;for(var u=p.child(l),m=u.attrs,h=m.colspan,f=m.rowspan,g=m.colwidth,_=0;_<f;_++){if(o<=_+s){(r=r||[]).push({type:"overlong_rowspan",pos:c,n:f-_});break}for(var b=i+_*t,v=0;v<h;v++){0===n[b+v]?n[b+v]=c:(r=r||[]).push({type:"collision",row:s,pos:c,n:h-v});var y,C,k=g&&g[v];k&&(null==(C=a[y=(b+v)%t*2])||C!==k&&1===a[1+y]?(a[y]=k,a[1+y]=1):C===k&&a[1+y]++)}}i+=h,c+=u.nodeSize}for(var w=(s+1)*t,E=0;i<w;)0===n[i++]&&E++;E&&(r=r||[]).push({type:"missing",row:s,n:E}),c++}for(var T=new D(t,o,n,r),S=!1,l=0;!S&&l<a.length;l+=2)null!=a[l]&&a[l+1]<o&&(S=!0);return S&&function(e,t,o){e.problems||(e.problems=[]);for(var n=0,i={};n<e.map.length;n++){var r=e.map[n];if(!i[r]){i[r]=!0;for(var a=o.nodeAt(r),l=null,d=0;d<a.attrs.colspan;d++){var s=t[(n+d)%e.width*2];null==s||a.attrs.colwidth&&a.attrs.colwidth[d]===s||((l=l||function(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],o=0;o<e.colspan;o++)t.push(0);return t}(a.attrs))[d]=s)}l&&e.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:l})}}}(T,a,e),T}var s=function(e,t,o,n){this.left=e,this.top=t,this.right=o,this.bottom=n};t.Rect=s;var D=(c.get=function(e){return i(e)||r(e,d(e))},c.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var o=this.map[t];if(o===e){for(var n=t%this.width,i=Math.floor(t/this.width),r=1+n,a=i+1,l=1;r<this.width&&this.map[t+l]===o;l++)r++;for(l=1;a<this.height&&this.map[t+this.width*l]===o;l++)a++;return new s(n,i,r,a)}}throw new RangeError("No cell with offset "+e+" found")},c.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]===e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},c.prototype.nextCell=function(e,t,o){var n=this.findCell(e),i=n.left,r=n.right,e=n.top,n=n.bottom;return"horiz"===t?(o<0?0===i:r===this.width)?null:this.map[e*this.width+(o<0?i-1:r)]:(o<0?0===e:n===this.height)?null:this.map[i+this.width*(o<0?e-1:n)]},c.prototype.rectBetween=function(e,t){var o=this.findCell(e),n=o.left,i=o.right,r=o.top,a=o.bottom,l=this.findCell(t),e=l.left,o=l.right,t=l.top,l=l.bottom;return new s(Math.min(n,e),Math.min(r,t),Math.max(i,o),Math.max(a,l))},c.prototype.cellsInRect=function(e){for(var t=[],o={},n=e.top;n<e.bottom;n++)for(var i=e.left;i<e.right;i++){var r=n*this.width+i,a=this.map[r];o[a]||(o[a]=!0,i===e.left&&i&&this.map[r-1]===a||n===e.top&&n&&this.map[r-this.width]===a||t.push(a))}return t},c.prototype.positionAt=function(e,t,o){for(var n=0,i=0;;n++){var r=i+o.child(n).nodeSize;if(n===e){for(var a=t+e*this.width,l=(e+1)*this.width;a<l&&this.map[a]<i;)a++;return a===l?r-1:this.map[a]}i=r}},c);function c(e,t,o,n){this.width=e,this.height=t,this.map=o,this.problems=n}t.TableMap=D},function(e,t){e.exports=_},function(e,t){e.exports=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),i=(n=o(10).ComponentMessages,i.__extends(a,n),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignCenter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignJustify",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignLeft",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignRight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"backColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"bold",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"cleanFormatting",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"createLink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontFamily",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"foreColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"indent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertFile",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertImage",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertOrderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertUnorderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"italic",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"outdent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"print",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"redo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"selectAll",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"strikethrough",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"subscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"superscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"underline",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"undo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"unlink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"viewSource",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteColumn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogApply",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogCancel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogInsert",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogUpdate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageAltText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkOpenInNewWindow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkWebAddress",void 0),a);function a(){return null!==n&&n.apply(this,arguments)||this}t.Messages=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(17),o=(n.prototype.ngOnInit=function(){this.subs=this.editor.stateChange.subscribe(this.onStateChange.bind(this)),this.subs.add(this.button.click.subscribe(this.clickHandler.bind(this))),this.subs.add(this.button.pointerdown.subscribe(this.pointerdownHandler.bind(this)))},n.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},n.prototype.clickHandler=function(){},n.prototype.pointerdownHandler=function(e){},n.prototype.onStateChange=function(e){},n);function n(e,t,o,n,i){var r=this;this.command=e,this.button=t,this.editor=o,this.localization=n,this.toolsService=i,setTimeout(function(){var e=r.localization.get(r.command);e&&(r.button.showText="overflow",r.button.showIcon="both",r.button.text=e),r.button.toolbarOptions.icon||(r.button.icon=a.commandIcons[r.command]),r.button.title=e,r.toolsService.needsCheck.next()})}t.EditorCommandBase=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(19),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.fontSizeDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontSizeDropDownList",{read:o.FontSizeDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontSizeDropDownListComponent)],s.prototype,"fontSizeDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data=[],o}t.FontSizeDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),o=o(3),l=(n=a.DialogContentBase,i.__extends(d,n),d.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},d.prototype.onCellClick=function(e){this.dialog.close(),this.editor.exec("insertTable",e),this.editor.view.focus()},d.prototype.setData=function(e){this.editor=e.editor},d.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",o.EditorComponent)],d.prototype,"editor",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],d));function d(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o}t.InsertTableDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(20),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.fontFamilyDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontFamilyDropDownList",{read:o.FontFamilyDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontFamilyDropDownListComponent)],s.prototype,"fontFamilyDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data=[],o}t.FontFamilyDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(13),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.colorPicker.focus()})},s.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.value=e.color},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.value=e.value,this.editorCommand=e.editorCommand,this.paletteSettings=e.paletteSettings,this.icon=e.icon,this.view=e.view},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("colorpicker",{read:o.ColorPickerComponent,static:!0}),i.__metadata("design:type",o.ColorPickerComponent)],s.prototype,"colorPicker",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o}t.ColorPickerDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),l=o(2),d=o(3),o=o(21),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.formatDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},s.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},s.prototype.textFor=function(e){return this.localization.get(e)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("formatDropDownList",{read:o.FormatDropDownListComponent,static:!0}),i.__metadata("design:type",o.FormatDropDownListComponent)],s.prototype,"formatDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data=[],o}t.FormatDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(e){return"plugins must be a function, but received "+JSON.stringify(e)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(16),l=o(7),d=o(8),s=o(9),o=o(2),o=(n=l.DialogContentBase,i.__extends(c,n),c.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.hrefInput.nativeElement.focus()})},c.prototype.onCancelAction=function(){this.dialog.close()},c.prototype.onConfirmAction=function(){var e=this.getData();this.editor.exec(this.command,e),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(c.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),c.prototype.setData=function(e,t){"createLink"===this.command&&this.linkForm.addControl("target",new a.FormControl);var o=d.getMark(e,e.schema.marks.link);o?this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:s.isPresent(o.attrs.target),text:this.setLinkText(e)}):e.selection.empty?(t=t.applyToWord?d.expandSelection(e,function(){},t).state:e).selection.empty||this.linkForm.patchValue({text:d.getSelectionText(t)}):this.linkForm.patchValue({text:d.getSelectionText(e)})},c.prototype.textForWithPrefix=function(e){var t="createLink"===this.command?"link":"file";return this.textFor(t+e)},c.prototype.textFor=function(e){return this.localization.get(e)},c.prototype.setLinkText=function(e){var t=e.selection;if(t.empty&&t.$cursor){var o=t.$cursor,t=o.index();return o.parent.child(t).text}return d.getSelectionText(e)},c.prototype.getData=function(){var e=this.linkForm.value;return s.isPresent(this.linkForm.controls.target)&&(e.target=e.target?"_blank":null),e},i.__decorate([r.Input(),i.__metadata("design:type",Object)],c.prototype,"editor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],c.prototype,"command",void 0),i.__decorate([r.ViewChild("hrefInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],c.prototype,"hrefInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="textInput.focus()">{{ textForWithPrefix(\'Text\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #textInput formControlName="text" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="titleInput.focus()">{{ textForWithPrefix(\'Title\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #titleInput formControlName="title" type="text" class="k-textbox" />\n </div>\n <ng-container *ngIf="command === \'createLink\'">\n <div class="k-edit-label"></div>\n <div class="k-edit-field">\n <input type="checkbox" id="k-target-blank" class="k-checkbox" formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,o.EditorLocalizationService])],c));function c(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.linkForm=new a.FormGroup({href:new a.FormControl("",a.Validators.required),text:new a.FormControl({value:"",disabled:!0},a.Validators.required),title:new a.FormControl("")}),o}t.FileLinkDialogComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(16),l=o(7),d=o(8),s=o(9),c=o(2),p=o(15),c=(n=l.DialogContentBase,i.__extends(u,n),u.prototype.ngOnInit=function(){this.srcInputId="k-"+p.guid(),this.altTextInputId="k-"+p.guid(),this.widthInputId="k-"+p.guid(),this.heightInputId="k-"+p.guid()},u.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.srcInput.nativeElement.focus()})},u.prototype.onCancelAction=function(){this.dialog.close()},u.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},u.prototype.setData=function(e){e=d.getNodeFromSelection(e);e&&(this.src.patchValue(e.attrs.src),this.alt.patchValue(e.attrs.alt),this.width.patchValue(e.attrs.width),this.height.patchValue(e.attrs.height))},u.prototype.textFor=function(e){return this.localization.get(e)},u.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},u.prototype.normalizeDimension=function(e){return Number.isNaN(parseInt(e,10))||parseInt(e,10)<=0?"":s.safeString(parseInt(e,10))},i.__decorate([r.Input(),i.__metadata("design:type",Object)],u.prototype,"editor",void 0),i.__decorate([r.ViewChild("srcInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],u.prototype,"srcInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="altTextInputId">{{ textFor(\'imageAltText\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="widthInputId">{{ textFor(\'imageWidth\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="heightInputId">{{ textFor(\'imageHeight\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,c.EditorLocalizationService])],u));function u(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.src=new a.FormControl("",a.Validators.required),o.alt=new a.FormControl(""),o.width=new a.FormControl("",a.Validators.min(1)),o.height=new a.FormControl("",a.Validators.min(1)),o.data={alt:"",height:"",src:"",width:""},o.imageData=new a.FormGroup({alt:o.alt,height:o.height,src:o.src,width:o.width}),o}t.ImageDialogComponent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(7),o=o(2),o=(n=a.DialogContentBase,i.__extends(l,n),l.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then(function(){e.textarea.nativeElement.focus()})},l.prototype.onCancelAction=function(){this.dialog.close()},l.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},l.prototype.getData=function(){return this.textarea.nativeElement.value},l.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},l.prototype.textFor=function(e){return this.localization.get(e)},l.prototype.indent=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},i.__decorate([r.Input(),i.__metadata("design:type",Object)],l.prototype,"editor",void 0),i.__decorate([r.ViewChild("textarea",{static:!0}),i.__metadata("design:type",r.ElementRef)],l.prototype,"textarea",void 0),i.__decorate([r.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,o.EditorLocalizationService])],l));function l(e,t){var o=n.call(this,e)||this;return o.dialog=e,o.localization=t,o.data="",o}t.SourceDialogComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d,n=o(0),f=o(8),g=o(22),_=o(37),i=(d=f.Selection,n.__extends(l,d),l.colSelection=function(e,t){void 0===t&&(t=e);var o=g.TableMap.get(e.node(-1)),n=e.start(-1),i=o.findCell(e.pos-n),r=o.findCell(t.pos-n),a=e.node(0);return i.top<=r.top?(0<i.top&&(e=a.resolve(n+o.map[i.left])),r.bottom<o.height&&(t=a.resolve(n+o.map[o.width*(o.height-1)+r.right-1]))):(0<r.top&&(t=a.resolve(n+o.map[r.left])),i.bottom<o.height&&(e=a.resolve(n+o.map[o.width*(o.height-1)+i.right-1]))),new l(e,t)},l.rowSelection=function(e,t){void 0===t&&(t=e);var o=g.TableMap.get(e.node(-1)),n=e.start(-1),i=o.findCell(e.pos-n),r=o.findCell(t.pos-n),a=e.node(0);return i.left<=r.left?(0<i.left&&(e=a.resolve(n+o.map[i.top*o.width])),r.right<o.width&&(t=a.resolve(n+o.map[o.width*(r.top+1)-1]))):(0<r.left&&(t=a.resolve(n+o.map[r.top*o.width])),i.right<o.width&&(e=a.resolve(n+o.map[o.width*(i.top+1)-1]))),new l(e,t)},l.fromJSON=function(e,t){return new l(e.resolve(t.anchor),e.resolve(t.head))},l.create=function(e,t,o){return void 0===o&&(o=t),new l(e.resolve(t),e.resolve(o))},l.prototype.map=function(e,t){var o=e.resolve(t.map(this.$anchorCell.pos)),e=e.resolve(t.map(this.$headCell.pos));if(_.pointsAtCell(o)&&_.pointsAtCell(e)&&_.inSameTable(o,e)){t=this.$anchorCell.node(-1)!==o.node(-1);return t&&this.isRowSelection()?l.rowSelection(o,e):t&&this.isColSelection()?l.colSelection(o,e):new l(o,e)}return f.TextSelection.between(o,e)},l.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=g.TableMap.get(e),o=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o),i={},r=[],a=n.top;a<n.bottom;a++){for(var l=[],d=a*t.width+n.left,s=n.left;s<n.right;s++,d++){var c,p,u,m,h=t.map[d];i[h]||(i[h]=!0,c=t.findCell(h),p=e.nodeAt(h),u=n.left-c.left,h=c.right-n.right,(0<u||0<h)&&(m=p.attrs,0<u&&(m=_.removeColSpan(m,0,u)),0<h&&(m=_.removeColSpan(m,m.colspan-h,h)),p=c.left<n.left?p.type.createAndFill(m):p.type.create(m,p.content)),(c.top<n.top||c.bottom>n.bottom)&&(m=_.setAttr(p.attrs,"rowspan",Math.min(c.bottom,n.bottom)-Math.max(c.top,n.top)),p=c.top<n.top?p.type.createAndFill(m):p.type.create(m,p.content)),l.push(p))}r.push(e.child(a).copy(f.Fragment.from(l)))}o=this.isColSelection()&&this.isRowSelection()?e:r;return new f.Slice(f.Fragment.from(o),1,1)},l.prototype.replace=function(e,t){void 0===t&&(t=f.Slice.empty);for(var o=e.steps.length,n=this.ranges,i=0;i<n.length;i++){var r=n[i],a=r.$from,l=r.$to,r=e.mapping.slice(o);e.replace(r.map(a.pos),r.map(l.pos),i?f.Slice.empty:t)}var d=f.Selection.findFrom(e.doc.resolve(e.mapping.slice(o).map(this.to)),-1);d&&e.setSelection(d)},l.prototype.replaceWith=function(e,t){this.replace(e,new f.Slice(f.Fragment.from(t),0,0))},l.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),o=g.TableMap.get(t),n=this.$anchorCell.start(-1),i=o.cellsInRect(o.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n)),r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])},l.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(0<Math.min(e,t))return!1;e+=this.$anchorCell.nodeAfter.attrs.rowspan,t+=this.$headCell.nodeAfter.attrs.rowspan;return Math.max(e,t)===this.$headCell.node(-1).childCount},l.prototype.isRowSelection=function(){var e=g.TableMap.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),o=e.colCount(this.$anchorCell.pos-t),t=e.colCount(this.$headCell.pos-t);if(0<Math.min(o,t))return!1;o+=this.$anchorCell.nodeAfter.attrs.colspan,t+=this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,t)===e.width},l.prototype.eq=function(e){return e instanceof l&&e.$anchorCell.pos===this.$anchorCell.pos&&e.$headCell.pos===this.$headCell.pos},l.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},l.prototype.getBookmark=function(){return new r(this.$anchorCell.pos,this.$headCell.pos)},l);function l(e,t){void 0===t&&(t=e);var o=this,n=e.node(-1),i=g.TableMap.get(n),r=e.start(-1),a=i.rectBetween(e.pos-r,t.pos-r),l=e.node(0),a=i.cellsInRect(a).filter(function(e){return e!==t.pos-r});a.unshift(t.pos-r);a=a.map(function(e){var t=n.nodeAt(e),e=e+r+1;return new f.SelectionRange(l.resolve(e),l.resolve(e+t.content.size))});return(o=d.call(this,a[0].$from,a[0].$to,a)||this).$anchorCell=e,o.$headCell=t,o}(t.CellSelection=i).prototype.visible=!1,f.Selection.jsonID("table_cell",i);var r=(a.prototype.map=function(e){return new a(e.map(this.anchor),e.map(this.head))},a.prototype.resolve=function(e){var t=e.resolve(this.anchor),e=e.resolve(this.head);return"row"===t.parent.type.spec.tableRole&&"row"===e.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&e.index()<e.parent.childCount&&_.inSameTable(t,e)?new i(t,e):f.Selection.near(e,1)},a);function a(e,t){this.anchor=e,this.head=t}},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=t(8),a=t(11),l=t(22),_=t(36);g.findParentNodeClosestToPos=function(e,t){for(var o=e.depth;0<o;o--){var n=e.node(o);if(t(n))return{start:e.start(o),pos:0<o?e.before(o):0,depth:o,node:n}}},g.createTable=function(e,t,o){for(var n=e.table,i=e.table_body,r=e.table_row,a=e.table_cell,l=[],d=0;d<t+1;d++){for(var s=[],c=0;c<o+1;c++)s.push(a.createAndFill());l.push(r.createAndFill(void 0,s))}i=i.createAndFill(void 0,l);return n.createAndFill(void 0,i)},g.isInTable=function(e){for(var t=e.selection.$head,o=t.depth;0<o;o--)if(a.isTableRow(t.node(o)))return!0;return!1},g.setAttr=function(e,t,o){var n,i={};for(n in e)i[n]=e[n];return i[t]=o,i};function b(e){for(var t=e.depth-1;0<t;t--)if(a.isTableRow(e.node(t)))return e.node(0).resolve(e.before(t+1));return null}g.selectedRect=function(e){var t,o=(t=e)instanceof _.CellSelection&&t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t instanceof r.NodeSelection&&t.node&&a.isTableCell(t.node)?t.$anchor:b(t.$head)||function(e){for(var t=e.nodeAfter,o=e.pos;t;t=t.firstChild,o++)if("cell"===(n=t.type.spec.tableRole)||"header_cell"===n)return e.doc.resolve(o);for(var n,i=e.nodeBefore,o=e.pos;i;i=i.lastChild,o--)if("cell"===(n=i.type.spec.tableRole)||"header_cell"===n)return e.doc.resolve(o-i.nodeSize)}(t.$head),n=o.node(-1),i=o.start(-1),t=l.TableMap.get(n),o=e instanceof _.CellSelection?t.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):t.findCell(o.pos-i);return o.tableStart=i,o.map=t,o.table=n,o},g.tableNodeTypes=function(e){var t=e.cached.tableNodeTypes;if(!t)for(var o in t=e.cached.tableNodeTypes={},e.nodes){var n=e.nodes[o],o=n.spec.tableRole;o&&(t[o]=n)}return t},g.rowIsHeader=function(e,t,o){for(var n=g.tableNodeTypes(t.type.schema).header_cell,i=0;i<e.width;i++)if(t.nodeAt(e.map[i+o*e.width]).type!==n)return!1;return!0},g.addColSpan=function(e,t,o){var n=g.setAttr(e,"colspan",e.colspan+(o=void 0===o?1:o));if(n.colwidth){n.colwidth=n.colwidth.slice();for(var i=0;i<o;i++)n.colwidth.splice(t,0,0)}return n},g.removeColSpan=function(e,t,o){e=g.setAttr(e,"colspan",e.colspan-(o=void 0===o?1:o));return e.colwidth&&(e.colwidth=e.colwidth.slice(),e.colwidth.splice(t,o),e.colwidth.some(function(e){return 0<e})||(e.colwidth=null)),e},g.isCellEmpty=function(e){e=e.content;return 1===e.childCount&&e.firstChild.isTextblock&&0===e.firstChild.childCount},g.splitCellWithType=function(f){return function(e,t){var o,n,i=e.selection;if(i instanceof _.CellSelection){if(i.$anchorCell.pos!==i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,n=i.$anchorCell.pos}else{if(!(o=function(e){for(var t=e.depth;0<t;t--){var o=e.node(t).type.spec.tableRole;if("cell"===o||"header_cell"===o)return e.node(t)}return null}(i.$from)))return!1;n=b(i.$from).pos}if(1===o.attrs.colspan&&1===o.attrs.rowspan)return!1;if(t){var r=o.attrs,a=[],l=r.colwidth;1<(r=1<r.rowspan?g.setAttr(r,"rowspan",1):r).colspan&&(r=g.setAttr(r,"colspan",1));for(var d=g.selectedRect(e),s=e.tr,c=0;c<d.right-d.left;c++)a.push(l?g.setAttr(r,"colwidth",l&&l[c]?[l[c]]:null):r);for(var p=void 0,u=d.top;u<d.bottom;u++){var m=d.map.positionAt(u,d.left,d.table);u===d.top&&(m+=o.nodeSize);for(var h=d.left,c=0;h<d.right;h++,c++)h===d.left&&u===d.top||s.insert(p=s.mapping.map(m+d.tableStart,1),f({node:o,row:u,col:h}).createAndFill(a[c]))}s.setNodeMarkup(n,f({node:o,row:d.top,col:d.left}),a[0]),i instanceof _.CellSelection&&s.setSelection(new _.CellSelection(s.doc.resolve(i.$anchorCell.pos),p&&s.doc.resolve(p))),t(s)}return!0}},g.pointsAtCell=function(e){return a.isTableRow(e.parent)&&e.nodeAfter},g.inSameTable=function(e,t){return e.depth===t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)},g.cellsOverlapRectangle=function(e,t){for(var o=e.width,n=e.height,i=e.map,r=t.top*o+t.left,a=r,l=(t.bottom-1)*o+t.left,d=r+(t.right-t.left-1),s=t.top;s<t.bottom;s++){if(0<t.left&&i[a]===i[a-1]||t.right<o&&i[d]===i[d+1])return!0;a+=o,d+=o}for(s=t.left;s<t.right;s++){if(0<t.top&&i[r]===i[r-o]||t.bottom<n&&i[l]===i[l+o])return!0;r++,l++}return!1}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(91),r=o(8);t.Schema=r.Schema;var a=o(90),o=r.marks,i=Object.assign(r.nodes,a.tableNodes,i.semanticNodes);t.schema=new r.Schema({marks:o,nodes:n.__assign({},i,{blockquote:n.__assign({},i.blockquote,{content:"inline*"})})})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),c.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,i.prototype.clickHandler.call(this)},n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"selectAll",e,t,o,n)||this}t.EditorSelectAllButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),c=o(32),o=o(5),o=(i=d.EditorCommandButton,n.__extends(p,i),p.prototype.ngAfterViewInit=function(){if(r.isDevMode&&!this.editor.iframe)throw new Error(c.EditorErrorMessages.printTool)},p.prototype.clickHandler=function(){var e;!this.editor.iframe||(e=(e=(e=(e=this.editor.view)&&e.dom)&&e.ownerDocument)&&e.defaultView)&&e.print()},n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],p));function p(e,t,o,n){n=i.call(this,"print",e,t,o,n)||this;return n.editor=t,n}t.EditorPrintDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),o=o(1),o=(i.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){e.hostEl.nativeElement.addEventListener("pointerdown",e.preventDefault)})},i.prototype.ngOnDestroy=function(){this.hostEl.nativeElement.removeEventListener("pointerdown",this.preventDefault)},n.__decorate([o.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],i));function i(e,t){this.hostEl=e,this.zone=t,this.preventDefault=function(e){e.preventDefault()}}t.DropDownToolDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(10),o=o(25),l=(n=o.Messages,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-editor-messages",template:""}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(10),o=o(25),l=(n=o.Messages,r.__extends(d,n),i=d,i=r.__decorate([a.Directive({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoEditorLocalizedMessages]"}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"splitCell",e,t,o,n)||this}t.EditorSplitCellButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"mergeCells",e,t,o,n)||this}t.EditorMergeCellsButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"deleteTable",e,t,o,n)||this}t.EditorDeleteTableButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"deleteRow",e,t,o,n)||this}t.EditorDeleteRowButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"deleteColumn",e,t,o,n)||this}t.EditorDeleteColumnButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addRowAfter",e,t,o,n)||this}t.EditorAddRowAfterButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addRowBefore",e,t,o,n)||this}t.EditorAddRowBeforeButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addColumnAfter",e,t,o,n)||this}t.EditorAddColumnAfterButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"addColumnBefore",e,t,o,n)||this}t.EditorAddColumnBeforeButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"cleanFormatting",e,t,o,n)||this}t.EditorCleanFormattingButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(18),a=o(17),r=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}t.EditorBackColorDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(18),a=o(17),r=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}t.EditorForeColorDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(3),l=o(12),d=o(4),s=o(2),o=o(5),o=(i=l.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[d.ToolBarButtonComponent,a.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertFile",e,t,o,n)||this}t.EditorInsertFileButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"superscript",e,t,o,n)||this}t.EditorSuperscriptButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"subscript",e,t,o,n)||this}t.EditorSubscriptButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"strikethrough",e,t,o,n)||this}t.EditorStrikethroughButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"underline",e,t,o,n)||this}t.EditorUnderlineButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"italic",e,t,o,n)||this}t.EditorItalicButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"bold",e,t,o,n)||this}t.EditorBoldButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(12),s=o(2),o=o(5),o=(i=d.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"viewSource",e,t,o,n)||this}t.EditorViewSourceButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertUnorderedList",e,t,o,n)||this}t.EditorInsertUnorderedListButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertOrderedList",e,t,o,n)||this}t.EditorInsertOrderedListButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"unlink",e,t,o,n)||this}t.EditorUnlinkButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(12),s=o(2),o=o(5),o=(i=d.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"createLink",e,t,o,n)||this}t.EditorCreateLinkButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"outdent",e,t,o,n)||this}t.EditorOutdentButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"indent",e,t,o,n)||this}t.EditorIndentButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(12),s=o(2),o=o(5),o=(i=d.EditorCommandDialog,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"insertImage",e,t,o,n)||this}t.EditorInsertImageButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"undo",e,t,o,n)||this}t.EditorUndoButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"redo",e,t,o,n)||this}t.EditorRedoButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignJustify",e,t,o,n)||this}t.EditorAlignJustifyButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignRight",e,t,o,n)||this}t.EditorAlignRightButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignCenter",e,t,o,n)||this}t.EditorAlignCenterButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(1),a=o(4),l=o(3),d=o(6),s=o(2),o=o(5),o=(i=d.EditorCommandButton,n.__extends(c,i),n.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),n.__param(1,r.Host()),n.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService,o.EditorToolsService])],c));function c(e,t,o,n){return i.call(this,"alignLeft",e,t,o,n)||this}t.EditorAlignLeftButtonDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),n=(Object.defineProperty(r.prototype,"message",{get:function(){var e=this.state,t=e.rows,e=e.cols;return"Create a "+(-1<t?t+1:"")+" "+(-1<e?"x":"")+" "+(-1<e?e+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),r.prototype.selected=function(e){var t=this.state,o=t.rows,n=t.cols,t=Math.floor(e/this.cols),e=e%this.cols;return t<=o&&e<=n},r.prototype.setState=function(e){var t=Math.floor(e/this.cols),e=e%this.cols;this.state={rows:t,cols:e}},r.prototype.resetState=function(){this.state={rows:-1,cols:-1}},r.prototype.insertTable=function(){this.cellClick.emit(this.state)},r.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"tableWizardClick",void 0),n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],r));function r(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}t.PopupTableGridComponent=n},function(e,t){e.exports=C},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(24),d=o(23),s=o(4),c=o(78),p=o(9),u=o(3),m=o(2),h=o(7),f=o(28),g=o(15),h=(r=s.ToolBarToolComponent,i.__extends(_,r),(n=_).prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(_.prototype,"outerWidth",{get:function(){if(this.element)return p.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),_.prototype.toggle=function(e){this.open=void 0===e?!this.open:e,this.destroyPopup(),this.open&&this.createPopup()},_.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:f.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor})},_.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},_.prototype.onCellClick=function(e){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",e)},_.prototype.canFocus=function(){return!this.disabled},_.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},_.prototype.handleKey=function(e){return e.keyCode===g.Keys.Space||e.keyCode===g.Keys.Enter||!(this.tabIndex=-1)},_.prototype.onTableWizardClick=function(){},_.prototype.createPopup=function(){var e="rtl"===this.editor.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:{horizontal:e,vertical:"bottom"},animate:!0,content:this.popupGridTemplate,popupAlign:{horizontal:e,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});e=this.popupRef.popupElement;e.style.width="190px",e.style.height="164px",e.setAttribute("dir",this.editor.direction)},_.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},_.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"element",void 0),i.__decorate([a.ViewChild("overflowElement",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"overflowElement",void 0),i.__decorate([a.ViewChild("popupGridTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupGridTemplate",void 0),n=i.__decorate([a.Component({providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="toggle()"\n (blur)="onBlur()"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="openDialog()">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[u.EditorComponent,m.EditorLocalizationService,c.PopupService,h.DialogService])],_));function _(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.localization=t,i.popupService=o,i.dialogService=n,i.open=!1,i.buttonBlurred=new a.EventEmitter,i.cellClicked=new a.EventEmitter,i.subs=i.editor.stateChange.subscribe(function(e){e=e.insertTable;i.disabled=e.disabled}),i.subs.add(i.buttonBlurred.pipe(d.concatMap(function(){return l.interval(200).pipe(d.take(1),d.takeUntil(i.cellClicked))})).subscribe(function(){i.toggle(!1)})),i}t.EditorInsertTableButtonComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(9),s=o(3),c=o(2),p=o(7),u=o(29),m=o(20),o=o(5),o=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.fontFamilyDropDownList||t.fontFamilyDropDownList.dropDownList.isOpen)||null===e.dataItem.fontName},setTimeout(function(){t.defaultItem={text:t.title,fontName:null},t.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(function(e){e=e.style;t.value=d.getUniqueStyleValues(e.selected,"font-family")||null,t.disabled=e.disabled})},h.prototype.onValueChange=function(t){d.isPresent(t)&&(this.editor.exec("fontFamily",t),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(e){return e.fontName===t})))},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontFamilyButton.nativeElement:this.fontFamilyDropDownList).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],h.prototype,"data",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],h.prototype,"valueChange",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("element",{read:m.FontFamilyDropDownListComponent,static:!1}),i.__metadata("design:type",m.FontFamilyDropDownListComponent)],h.prototype,"fontFamilyDropDownList",void 0),i.__decorate([a.ViewChild("fontFamilyButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"fontFamilyButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService,o.EditorToolsService])],h));function h(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.dialogService=t,i.localization=o,i.toolsService=n,i.disabled=!1,i.tabindex=-1,i.valueChange=new a.EventEmitter,i._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],i}t.EditorFontFamilyComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(9),s=o(3),c=o(2),p=o(7),u=o(27),m=o(19),o=o(5),o=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.fontSizeDropDownList||t.fontSizeDropDownList.dropDownList.isOpen)||null===e.dataItem.size},setTimeout(function(){t.defaultItem={text:t.title,size:null},t.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(function(e){e=e.style;t.value=(d.getUniqueStyleValues(e.selected,"font-size").match(/\d+/g)||[null])[0],t.disabled=e.disabled})},h.prototype.onValueChange=function(t){d.isPresent(t)&&(this.editor.exec("fontSize",t),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(e){return e.size===parseInt(t,10)})))},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontSizeButton.nativeElement:this.fontSizeDropDownList).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],h.prototype,"data",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],h.prototype,"valueChange",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("element",{read:m.FontSizeDropDownListComponent,static:!1}),i.__metadata("design:type",m.FontSizeDropDownListComponent)],h.prototype,"fontSizeDropDownList",void 0),i.__decorate([a.ViewChild("fontSizeButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"fontSizeButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService,o.EditorToolsService])],h));function h(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.dialogService=t,i.localization=o,i.toolsService=n,i.disabled=!1,i.tabindex=-1,i.valueChange=new a.EventEmitter,i._data=[{text:"8px",size:8},{text:"10px",size:10},{text:"12px",size:12},{text:"14px",size:14},{text:"18px",size:18},{text:"24px",size:24},{text:"36px",size:36}],i}t.EditorFontSizeComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(7),s=o(9),c=o(3),p=o(2),u=o(31),m=o(21),o=o(5),o=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var o=this;this.itemDisabled=function(e){return!(o.overflows||!o.formatDropDownList||o.formatDropDownList.dropDownList.isOpen)||null===e.dataItem.tag},setTimeout(function(){o.defaultItem={text:o.title,tag:null},o.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(function(e){var t=e.format,e=o.data.findIndex(function(e){return e.tag===t.selected.tag});o.value=-1!==e?t.selected.tag:null,o.disabled=t.disabled})},h.prototype.onValueChange=function(t){s.isPresent(t)&&(this.editor.exec("format",{tag:t}),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(e){return e.tag===t})))},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(h.prototype,"outerWidth",{get:function(){var e=this.formatDropDownList.element;if(e)return s.outerWidth(e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.formatButton.nativeElement:this.formatDropDownList).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],h.prototype,"data",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],h.prototype,"valueChange",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("formatDropDownList",{static:!1}),i.__metadata("design:type",m.FormatDropDownListComponent)],h.prototype,"formatDropDownList",void 0),i.__decorate([a.ViewChild("formatButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"formatButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[c.EditorComponent,d.DialogService,p.EditorLocalizationService,o.EditorToolsService])],h));function h(e,t,o,n){var i=r.call(this)||this;return i.editor=e,i.dialogService=t,i.localization=o,i.toolsService=n,i.disabled=!1,i.tabindex=-1,i.valueChange=new a.EventEmitter,i._data=[{text:"Paragraph",tag:"p"},{text:"Quotation",tag:"blockquote"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],i}t.EditorFormatComponent=o},function(e,t){e.exports=h},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(84),a=o(16),l=o(4),d=o(14),s=o(7),c=o(83),p=o(13),u=o(13),m=o(3),h=o(34),f=o(35),g=o(33),_=o(31),b=o(30),v=o(29),y=o(28),C=o(82),k=o(81),w=o(80),E=o(18),T=o(79),S=o(77),x=o(76),D=o(75),B=o(74),I=o(73),A=o(72),O=o(71),M=o(70),z=o(69),L=o(68),P=o(67),F=o(66),R=o(65),j=o(64),W=o(63),H=o(62),V=o(61),N=o(60),$=o(59),U=o(58),J=o(57),K=o(56),G=o(55),q=o(54),Z=o(53),X=o(52),Q=o(51),Y=o(50),ee=o(49),te=o(48),oe=o(47),ne=o(46),ie=o(45),re=o(44),ae=o(43),le=o(42),de=o(21),se=o(20),ce=o(19),pe=o(27),ue=o(41),me=o(40),o=o(39),o=[x.EditorAlignLeftButtonDirective,D.EditorAlignCenterButtonDirective,B.EditorAlignRightButtonDirective,I.EditorAlignJustifyButtonDirective,K.EditorInsertFileButtonDirective,A.EditorRedoButtonDirective,O.EditorUndoButtonDirective,M.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,L.EditorOutdentButtonDirective,P.EditorCreateLinkButtonDirective,F.EditorUnlinkButtonDirective,R.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,W.EditorViewSourceButtonDirective,H.EditorBoldButtonDirective,V.EditorItalicButtonDirective,N.EditorUnderlineButtonDirective,$.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,J.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,q.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,ee.EditorAddRowAfterButtonDirective,te.EditorDeleteColumnButtonDirective,oe.EditorDeleteRowButtonDirective,ne.EditorDeleteTableButtonDirective,ie.EditorMergeCellsButtonDirective,re.EditorSplitCellButtonDirective,le.CustomMessagesComponent,ae.LocalizedMessagesDirective,ue.DropDownToolDirective,me.EditorPrintDirective,o.EditorSelectAllButtonDirective],T=[k.EditorFontSizeComponent,w.EditorFontFamilyComponent,C.EditorFormatComponent,E.EditorColorPickerComponent,T.EditorInsertTableButtonComponent],y=[g.FileLinkDialogComponent,h.ImageDialogComponent,f.SourceDialogComponent,_.FormatDialogComponent,b.ColorPickerDialogComponent,v.FontFamilyDialogComponent,pe.FontSizeDialogComponent,y.InsertTableDialogComponent],ce=[S.PopupTableGridComponent,de.FormatDropDownListComponent,se.FontFamilyDropDownListComponent,ce.FontSizeDropDownListComponent],u=n.__decorate([i.NgModule({declarations:[m.EditorComponent,o,T,y,ce],entryComponents:[y],exports:[m.EditorComponent,o,T,l.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,ce],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,p.ColorPickerModule,s.DialogModule,d.DropDownsModule,u.NumericTextBoxModule,l.ToolBarModule,u.TextBoxModule]})],he);function he(){}t.EditorModule=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!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 padding: 8px;\n}\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\ndiv.ProseMirror {\n position: relative;\n min-height: 100%;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\ndiv.ProseMirror:focus {\n outline: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror li {\n position: relative;\n}\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\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.ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* image resizing */\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',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 .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px;\n top: 0;\n 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 /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),i=o(8);t.getToolbarState=function(t,o){return{alignCenter:{selected:i.isAligned(t,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(t,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(t,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(t,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(t,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(t)},format:{selected:i.activeNode(t),disabled:!1},indent:{selected:!1,disabled:!(i.canIndentAsListItem(t,t.schema.nodes.list_item)||i.canBeIndented(t,i.indentRules))},insertOrderedList:{selected:i.hasNode(t,t.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(t,t.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(t,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(t,i.link)},outdent:{selected:!1,disabled:!(i.canOutdentAsListItem(t,i.outdentRules)||i.canBeIndented(t,i.outdentRules))},redo:{selected:!1,disabled:!i.redo(t)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:i.hasMark(t,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(t,t.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(t,i.subscript),disabled:!1},superscript:{selected:i.hasMark(t,i.superscript),disabled:!1},underline:{selected:i.hasMark(t,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(t)},createLink:{selected:!1,get disabled(){var e=t.selection.empty;return o&&o.applyToWord&&e?i.expandSelection(t,function(){},o).state.selection.empty:e}},insertFile:{selected:!1,disabled:t.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},print:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!i.addColumnBefore(t)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(t)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(t)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(t)},deleteRow:{selected:!1,disabled:!i.deleteRow(t)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(t)},mergeCells:{selected:!1,disabled:!i.mergeCells(t)},splitCell:{selected:!1,disabled:!i.splitCell(t)},deleteTable:{selected:!1,disabled:!i.deleteTable(t)}}},t.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},t.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var h=t(8),f=t(37),g=t(11),c=t(22),_=t(36);r.insertTable=function(n){return function(e,t){var o=f.createTable(e.schema.nodes,n.rows,n.cols);o&&h.insertNode(o,!0)(e,t)}};function a(e,t,o,i,r,a){var l,d=t.left,s=t.right,n=0<o?-1:0;if(i.node.descendants(function(e,o){var n;r(e)&&(n=-1,e.firstChild.descendants(function(e,t){!g.isTableCell(e)&&!g.isTableHeaderCell(e)||(n+=1)!==s&&n!==d||(t=new h.Selection(a.resolve(t+o+i.start),a.resolve(t+o+i.start)),l=f.selectedRect(t))}))}),!l)return e;for(var c=0;c<l.map.height;c++){var p,u,m=c*l.map.width+o;0<o&&o<l.map.width&&l.map.map[m-1]===l.map.map[m]?(u=l.map.map[m],p=l.table.nodeAt(u),e.setNodeMarkup(e.mapping.map(l.tableStart+u),null,f.addColSpan(p.attrs,o-l.map.colCount(u))),c+=p.attrs.rowspan-1):(m=l.table.nodeAt(l.map.map[m+n]).type,u=l.map.positionAt(c,o,l.table),e.insert(e.mapping.map(l.tableStart+u),m.createAndFill()))}return e}function i(e,t,i,r,a){var l,d=t.right,s=t.left;if(i.node.descendants(function(e,o){var n;r(e)&&(n=-1,e.firstChild.descendants(function(e,t){(g.isTableCell(e)||g.isTableHeaderCell(e))&&(n+=1)>=s&&n<d&&(e=a.resolve(t+o+i.start+e.nodeSize),e=new h.Selection(e,e),l=f.selectedRect(e))}))}),l)for(var o=l.right-1;function(e,t,o){for(var n=t.map,i=t.table,r=t.tableStart,a=0;a<n.height;){var l=a*n.width+o,d=n.map[l],s=i.nodeAt(d);if(o>0&&n.map[l-1]===d||o<n.width-1&&n.map[l+1]===d)e.setNodeMarkup(e.mapping.map(r+d),null,f.removeColSpan(s.attrs,o-n.colCount(d)));else{var c=e.mapping.map(r+d);e.delete(c,c+s.nodeSize)}a+=s.attrs.rowspan}}(e,l,o),o!==l.left;o--)l.table=l.tableStart?e.doc.nodeAt(l.tableStart-1):e.doc,l.map=c.TableMap.get(l.table)}r.addColumnBefore=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),n=f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable),i=a(e.tr,o,o.left,n,g.isTableHead,e.doc),i=a(i,o,o.left,n,g.isTableBody,e.doc),t(a(i,o,o.left,n,g.isTableFoot,e.doc))),!0);var o,n,i},r.addColumnAfter=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),n=f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable),i=a(e.tr,o,o.right,n,g.isTableHead,e.doc),i=a(i,o,o.right,n,g.isTableBody,e.doc),t(a(i,o,o.right,n,g.isTableFoot,e.doc))),!0);var o,n,i};function n(e,t,o){for(var n=t.map,i=t.tableStart,r=t.table,a=i,l=0;l<o;l++)a+=r.child(l).nodeSize;var d=[],s=0<o?-1:0;f.rowIsHeader(n,r,o+s)&&(s=0===o||o===n.height?null:0);for(var c,p,u=0,m=n.width*o;u<n.width;u++,m++)0<o&&o<n.height&&n.map[m]===n.map[m-n.width]?(c=n.map[m],p=r.nodeAt(c).attrs,e.setNodeMarkup(i+c,null,f.setAttr(p,"rowspan",p.rowspan+1)),u+=p.colspan-1):(p=null==s?f.tableNodeTypes(r.type.schema).cell:r.nodeAt(n.map[m+s*n.width]).type,d.push(p.createAndFill()));return e.insert(a,f.tableNodeTypes(r.type.schema).row.create(null,d)),e}r.addRowBefore=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),t(n(e.tr,o,o.top))),!0);var o},r.addRowAfter=function(e,t){return!!f.isInTable(e)&&(t&&(o=f.selectedRect(e.selection),t(n(e.tr,o,o.bottom))),!0);var o},r.deleteColumn=function(e,t){if(!f.isInTable(e))return!1;if(t){var o=f.selectedRect(e.selection);if(0===o.left&&o.right===o.map.width)return r.deleteTable(e,t);var n=f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable),e=e.tr;i(e,o,n,g.isTableFoot,e.doc),i(e,o,n,g.isTableBody,e.doc),i(e,o,n,g.isTableHead,e.doc),t(e)}return!0};r.deleteRow=function(e,t){if(!f.isInTable(e))return!1;if(t){var o=f.selectedRect(e.selection),n=e.tr;if(0===o.top&&o.bottom===o.map.height)return 1===f.findParentNodeClosestToPos(e.selection.$anchor,g.isTable).node.childCount?r.deleteTable(e,t):l(function(e){return e.type.name===o.table.type.name})(e,t),!0;for(var i=o.bottom-1;function(e,t,o){for(var n=t.map,i=t.table,r=t.tableStart,a=0,l=0;l<o;l++)a+=i.child(l).nodeSize;var t=a+i.child(o).nodeSize,d=e.mapping.maps.length;e.delete(a+r,t+r);for(var s=0,c=o*n.width;s<n.width;s++,c++){var p,u,m=n.map[c];0<o&&m===n.map[c-n.width]?(u=i.nodeAt(m).attrs,e.setNodeMarkup(e.mapping.slice(d).map(m+r),null,f.setAttr(u,"rowspan",u.rowspan-1)),s+=u.colspan-1):o<n.width&&m===n.map[c+n.width]&&(u=(p=i.nodeAt(m)).type.create(f.setAttr(p.attrs,"rowspan",p.attrs.rowspan-1),p.content),m=n.positionAt(o+1,s,i),e.insert(e.mapping.slice(d).map(r+m),u),s+=p.attrs.colspan-1)}}(n,o,i),i!==o.top;i--)o.table=o.tableStart?n.doc.nodeAt(o.tableStart-1):n.doc,o.map=c.TableMap.get(o.table);t(n)}return!0},r.mergeCells=function(e,t){var o=e.selection;if(!(o instanceof _.CellSelection)||o.$anchorCell.pos===o.$headCell.pos)return!1;var n=f.selectedRect(e.selection),i=n.map;if(f.cellsOverlapRectangle(i,n))return!1;if(t){for(var r=e.tr,a={},l=h.Fragment.empty,d=void 0,s=void 0,c=n.top;c<n.bottom;c++)for(var p=n.left;p<n.right;p++){var u=i.map[c*i.width+p],m=n.table.nodeAt(u);a[u]||(a[u]=!0,null===d?(d=u,s=m):(f.isCellEmpty(m)||(l=l.append(m.content)),u=r.mapping.map(u+n.tableStart),r.delete(u,u+m.nodeSize)))}r.setNodeMarkup(d+n.tableStart,null,f.setAttr(f.addColSpan(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),"rowspan",n.bottom-n.top)),l.size&&(o=d+1+s.content.size,e=f.isCellEmpty(s)?d+1:o,r.replaceWith(e+n.tableStart,o+n.tableStart,l)),r.setSelection(new _.CellSelection(r.doc.resolve(d+n.tableStart))),t(r)}return!0},r.splitCell=function(e,t){var o=f.tableNodeTypes(e.schema);return f.splitCellWithType(function(e){e=e.node;return o[e.type.spec.tableRole]})(e,t)};var l=function(r){return function(e,t){for(var o=e.selection.$anchor,n=o.depth;0<n;n--){var i=o.node(n);if(r(i))return t&&((i=e.tr).delete(o.before(n),o.after(n)).scrollIntoView(),t(i)),!0}return!1}};r.deleteTable=l(g.isTable)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){return r.alignBlocks(r.alignRemoveRules)(e,t)}var i=o(0),r=o(8),a=o(88);t.editorCommands=Object.assign({},{bold:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.bold,{applyToWord:e}))},cleanFormatting:function(e){return r.cleanFormatting(e)},createLink:function(e){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:e.value,applyToWord:e.applyToWord})},fontFamily:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-family",value:e.value,applyToWord:e.applyToWord})},fontSize:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-size",value:e.value+"px",applyToWord:e.applyToWord})},insertFile:function(e){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:e,applyToWord:e.applyToWord})},insertText:function(e){return r.insertText(e)},italic:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.italic,{applyToWord:e}))},strikethrough:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.strikethrough,{applyToWord:e}))},subscript:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.subscript,{applyToWord:e}))},superscript:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.superscript,{applyToWord:e}))},underline:function(e){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.underline,{applyToWord:e}))},unlink:function(){return r.removeLink(r.link)},foreColor:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"color",value:e.value,applyToWord:e.applyToWord})},backColor:function(e){return r.expandToWordWrap(r.applyInlineStyle,{style:"background-color",value:e.value,applyToWord:e.applyToWord})},selectAll:function(){return function(e,t){return r.selectAll(e,t)}}},{alignCenter:function(){return function(e,t){return(r.isAligned(e,r.alignCenterRules)?n:r.alignBlocks(r.alignCenterRules))(e,t)}},alignJustify:function(){return function(e,t){return(r.isAligned(e,r.alignJustifyRules)?n:r.alignBlocks(r.alignJustifyRules))(e,t)}},alignLeft:function(){return function(e,t){return(r.isAligned(e,r.alignLeftRules)?n:r.alignBlocks(r.alignLeftRules))(e,t)}},alignRight:function(){return function(e,t){return(r.isAligned(e,r.alignRightRules)?n:r.alignBlocks(r.alignRightRules))(e,t)}},format:function(e){return r.formatBlockElements(e.tag)},getHTML:function(){return r.getHtml},indent:function(){return r.indent},insertImage:function(e){return r.insertImage(e)},insertOrderedList:function(){return r.toggleOrderedList},insertUnorderedList:function(){return r.toggleUnorderedList},outdent:function(){return r.outdent},redo:function(){return r.redo},setHTML:function(e){var t=e.content,e=e.parseOptions;return r.setHtml(t,"setHTML",e)},undo:function(){return r.undo}},{insertTable:function(e){return a.insertTable(e)},addColumnBefore:function(){return a.addColumnBefore},addColumnAfter:function(){return a.addColumnAfter},addRowBefore:function(){return a.addRowBefore},addRowAfter:function(){return a.addRowAfter},deleteRow:function(){return a.deleteRow},deleteColumn:function(){return a.deleteColumn},mergeCells:function(){return a.mergeCells},splitCell:function(){return a.splitCell},deleteTable:function(){return a.deleteTable}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(e){var t=i.__assign({},e);return 1!==e.colspan?t.colspan=e.colspan:t.colspan=null,1!==e.rowspan?t.rowspan=e.rowspan:t.rowspan=null,r.removeEmptyEntries(t)}var i=o(0),r=o(9),o=o(11);t.tableNodes={table:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["cellspacing","cellpadding"])),content:"(table_body | table_head | table_foot | table_colgroup)+",tableRole:"table",isolating:!0,group:"block",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"table"}],toDOM:function(e){return["table",r.removeEmptyEntries(e.attrs),0]}},table_row:{content:"(table_cell | table_header)*",attrs:i.__assign({},o.commonAttributes()),tableRole:"row",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tr"}],toDOM:function(e){return["tr",r.removeEmptyEntries(e.attrs),0]}},table_cell:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"td"}],toDOM:function(e){return["td",n(e.attrs),0]}},table_header:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers","abbr","scope"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"header_cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"th"}],toDOM:function(e){return["th",n(e.attrs),0]}},table_body:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tbody"}],toDOM:function(e){return["tbody",r.removeEmptyEntries(e.attrs),0]}},table_foot:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tfoot"}],toDOM:function(e){return["tfoot",r.removeEmptyEntries(e.attrs),0]}},table_head:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"thead"}],toDOM:function(e){return["thead",r.removeEmptyEntries(e.attrs),0]}},table_col:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),selectable:!1,atom:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"col"}],toDOM:function(e){return["col",r.removeEmptyEntries(e.attrs)]}},table_colgroup:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),content:"table_col*",selectable:!1,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"colgroup"}],toDOM:function(e){return["colgroup",r.removeEmptyEntries(e.attrs),0]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(11);t.semanticTagNames=["article","main","nav","header","footer","aside","section"],t.semanticNodes=t.semanticTagNames.reduce(function(e,t){var o;return Object.assign(e,((e={})[t]=(o=t,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:o,getAttrs:i.getAttributes}],toDOM:function(e){return i.hasAttrs(e.attrs)?[o,i.getAttrs(e.attrs),i.hole]:[o,i.hole]}}),e))},{})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1638198421,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);t.EditorComponent=n.EditorComponent;n=o(85);t.EditorModule=n.EditorModule;n=o(38);t.schema=n.schema,t.Schema=n.Schema;o=o(8);t.EditorState=o.EditorState,t.Plugin=o.Plugin,t.PluginKey=o.PluginKey,t.Transaction=o.Transaction,t.EditorView=o.EditorView,t.Decoration=o.Decoration,t.DecorationSet=o.DecorationSet,t.NodeType=o.NodeType,t.Node=o.Node,t.MarkType=o.MarkType,t.Mark=o.Mark,t.InputRule=o.InputRule,t.inputRules=o.inputRules,t.wrappingInputRule=o.wrappingInputRule,t.textblockTypeInputRule=o.textblockTypeInputRule,t.keymap=o.keymap,t.baseKeymap=o.baseKeymap,t.history=o.history,t.dropCursor=o.dropCursor,t.gapCursor=o.gapCursor,t.tableNodes=o.tableNodes,t.getSelectionText=o.getSelectionText,function(e){for(var t in e)r(t,e[t])}(t)}],i={},n.m=o,n.c=i,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=94)}}});