@progress/kendo-angular-editor 2.5.0-dev.202111231749 → 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.
- package/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/editor.component.js +7 -2
- package/dist/es/index.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es/tools/format/editor-format.component.js +9 -3
- package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es/tools/print/editor-print-button.directive.js +5 -3
- package/dist/es/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/es/tools/shared/editor-command-base.js +9 -9
- package/dist/es/tools/shared/editor-command-button.js +3 -2
- package/dist/es/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es/tools/tools.service.js +20 -0
- package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/es2015/editor.component.d.ts +3 -1
- package/dist/es2015/editor.component.js +7 -2
- package/dist/es2015/index.d.ts +1 -0
- package/dist/es2015/index.js +1 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
- package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
- package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
- package/dist/es2015/tools/format/editor-format.component.js +9 -3
- package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
- package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/print/editor-print-button.directive.d.ts +2 -1
- package/dist/es2015/tools/print/editor-print-button.directive.js +5 -3
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +2 -1
- package/dist/es2015/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -2
- package/dist/es2015/tools/shared/editor-command-base.js +8 -8
- package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-button.js +3 -2
- package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
- package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es2015/tools/tools.service.d.ts +11 -0
- package/dist/es2015/tools/tools.service.js +22 -0
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/fesm2015/index.js +195 -126
- package/dist/fesm5/index.js +194 -127
- package/dist/npm/editor.component.js +7 -2
- package/dist/npm/index.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/npm/tools/format/editor-format.component.js +9 -3
- package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/npm/tools/print/editor-print-button.directive.js +5 -3
- package/dist/npm/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/npm/tools/shared/editor-command-base.js +9 -9
- package/dist/npm/tools/shared/editor-command-button.js +3 -2
- package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
- package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/npm/tools/tools.service.js +22 -0
- package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +4 -4
|
@@ -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/core","@angular/common","@angular/forms","@progress/kendo-angular-toolbar","@progress/kendo-angular-dropdowns","@progress/kendo-angular-buttons","@progress/kendo-angular-dialog","@progress/kendo-angular-inputs","rxjs","@progress/kendo-angular-common","rxjs/operators","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-popup"],function(r){var a,l,d,s,c,p,u,m,f,h,g,_,b,v,y,C;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){a=e(t)},function(t){l=e(t)},function(t){d=e(t)},function(t){s=e(t)},function(t){c=e(t)},function(t){p=e(t)},function(t){u=e(t)},function(t){m=e(t)},function(t){f=e(t)},function(t){h=e(t)},function(t){g=e(t)},function(t){_=e(t)},function(t){b=e(t)},function(t){v=e(t)},function(t){y=e(t)},function(t){C=e(t)}],execute:function(){function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,i;o=[function(t,e){t.exports=l},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),o=o(9),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(t,e,o){return n.call(this,t,e,o)||this}e.EditorLocalizationService=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=o(0),a=o(1),i=o(15),c=o(37),p=o(22),r=o(4),l=o(6),u=o(14),m=o(7),d=o(92),f=o(91),h=o(36),g=o(88),_=o(86),b=o(8),v=o(33),y=o(32),C=o(31),k=o(9),w=o(2),E=o(85),x=o(30),T={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!1,removeMsClasses:!1,removeMsStyles:!1,stripTags:[""]},D=b.conditionallyExecute(m.removeComments),S=b.conditionallyExecute(m.sanitize),k=(n=B,Object.defineProperty(B.prototype,"value",{get:function(){var t=this._view?this.getSource():this._value;return"<p></p>"===t?this._value&&"":t},set:function(t){this._previousValue!==t&&(this._value=t,this._previousValue=t,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(t){this._disabled=t||!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(t){var e;this._readonly=t||!1,this._view&&(e=void 0,t=(e=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode,this._view.dom.contains(t)&&e.getSelection().removeAllRanges(),e=this._view.state.doc,e=this._view.state.tr.setSelection(m.TextSelection.create(e,1)),this._view.dispatch(e)),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(t){if(a.isDevMode){if(!(t instanceof m.Schema))throw new Error(x.EditorErrorMessages.schemaType);if(this._view)throw new Error(x.EditorErrorMessages.setSchemaOnce)}this._schema=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"plugins",{get:function(){return this._plugins},set:function(t){if(a.isDevMode){if("function"!=typeof t)throw new Error(x.EditorErrorMessages.pluginsCallbackType(t));if(this._view)throw new Error(x.EditorErrorMessages.setPluginsOnce)}this._plugins=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){if(a.isDevMode&&this._view)throw new Error(x.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=t},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 t=this.resizable;return t.minWidth?t.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxWidth",{get:function(){var t=this.resizable;return t.maxWidth?t.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minHeight",{get:function(){var t=this.resizable;return t.minHeight?t.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxHeight",{get:function(){var t=this.resizable;return t.maxHeight?t.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 e=this;this.subs.add(this.localization.changes.subscribe(function(t){t=t.rtl;e.direction=t?"rtl":"ltr"}))},B.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},B.prototype.ngOnChanges=function(t){var e=this;t.iframe&&!t.iframe.isFirstChange()&&this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return e.initialize()}),t.resizable&&!t.resizable.isFirstChange()&&this.normalizeSize()},B.prototype.setDisabledState=function(t){this.disabled=t},B.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},B.prototype.exec=function(e,t){"setHTML"===e&&"string"==typeof t?t={content:t,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some(function(t){return t===e})&&(t={value:t,applyToWord:this.applyToWord}),g.editorCommands[e](t)(this._view.state,this._view.dispatch,this._view)},B.prototype.openDialog=function(t){var e={createLink:{content:C.FileLinkDialogComponent},insertFile:{content:C.FileLinkDialogComponent},insertImage:{content:y.ImageDialogComponent},viewSource:{content:v.SourceDialogComponent,height:400,width:500}},e=Object.assign({appendTo:this.dialogContainer},e[t]);this.toolbar.toggle(!1);e=this.dialogService.open(e).content.instance;"createLink"!==t&&"insertFile"!==t||(e.command=t),e.editor=this,e.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(t){this.value=null===t?void 0:t},B.prototype.registerOnChange=function(t){this.onChangeCallback=t},B.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},B.prototype.isEmpty=function(){return!1},B.prototype.initialize=function(){var t,o,e,n,i,r,a,l,d=this;u.isDocumentAvailable()&&(t=this.schema||h.schema,l=(o=this).container.element.nativeElement,e=m.parseContent((this.value||"").trim(),t,{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(t){var e;t&&((e=n.createElement("style")).appendChild(n.createTextNode(t)),n.head.appendChild(e))}),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(t){d.disabled||d.stateChange.next(d.readonly?_.disabledToolBarState:_.getToolbarState(t.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(t)),m.keymap(m.buildKeymap(t,{applyToWord:this.applyToWord})),m.keymap(m.baseKeymap),m.gapCursor(),m.imageResizing()],this.placeholder&&i.push(m.placeholder(this.placeholder)),r=m.EditorState.create({schema:t,doc:e,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(t){this.updateState(this.state.apply(t));var e=o.value;m.hasSameMarkup(e,o._previousValue,this.state.schema)||(o._previousValue=e,o.ngZone.run(function(){return o.valueModified.next(e)}))},transformPastedHTML:function(t){var e=s.__assign({},T,d.pasteCleanupSettings),o=b.pipe(D(e.removeHtmlComments),S(e.removeInvalidHTML))(t),t=function(t){if("all"===t.removeAttributes)return{"*":m.removeAttribute};var e=b.removeEmptyEntries({style:t.removeMsStyles?m.sanitizeStyleAttr:void 0,class:t.removeMsClasses?m.sanitizeClassAttr:void 0});return t.removeAttributes.reduce(function(t,e){return s.__assign({},t,((t={})[e]=m.removeAttribute,t))},e)}(e);return m.pasteCleanup(o,{convertMsLists:e.convertMsLists,stripTags:e.stripTags.join("|"),attributes:t})}})}),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(t){d.onChangeCallback(t),d.valueChange.emit(t),d.cdr.markForCheck()})),this.subs.add(c.fromEvent(this.viewMountElement,"keyup").pipe(p.map(function(t){return t.keyCode}),p.filter(function(t){return 121===t}),p.map(function(){return d.userToolBarElement||d.defaultToolbar})).subscribe(function(t){return t.nativeElement.focus()})),this.subs.add(c.fromEvent(this.viewMountElement,"blur").pipe(p.filter(function(t){return!d.viewMountElement.contains(t.relatedTarget)})).subscribe(function(){return d.onTouchedCallback()})))},B.prototype.normalizeSize=function(){var t,e=this;"object"!=typeof this.resizable||this._styleObserver||(t=this.element.nativeElement,this._styleObserver=new MutationObserver(function(){e.ngZone.runOutsideAngular(function(){return e.normalizeProperties(t)})}),this._styleObserver.observe(t,{attributeFilter:["style"]}))},B.prototype.normalizeProperties=function(i){var t=Object.keys(this.resizable),r=parseInt(i.style.width,10),a=parseInt(i.style.height,10),l=this.resizable;t.forEach(function(t){var e=t.startsWith("min"),o=!e,n=t.endsWith("Width"),t=!n;e&&n?r<l.minWidth&&(i.style.width=l.minWidth+"px"):e&&t?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([a.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"value",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"disabled",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"readonly",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean)],B.prototype,"iframe",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"applyToWord",void 0),s.__decorate([a.Input(),s.__metadata("design:type",m.Schema),s.__metadata("design:paramtypes",[m.Schema])],B.prototype,"schema",null),s.__decorate([a.Input(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[Function])],B.prototype,"plugins",null),s.__decorate([a.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"placeholder",null),s.__decorate([a.Input(),s.__metadata("design:type",Number)],B.prototype,"updateInterval",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"preserveWhitespace",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"pasteCleanupSettings",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"resizable",void 0),s.__decorate([a.Output(),s.__metadata("design:type",a.EventEmitter)],B.prototype,"valueChange",void 0),s.__decorate([a.Output("focus"),s.__metadata("design:type",a.EventEmitter)],B.prototype,"onFocus",void 0),s.__decorate([a.Output("blur"),s.__metadata("design:type",a.EventEmitter)],B.prototype,"onBlur",void 0),s.__decorate([a.HostBinding("class.k-editor"),s.__metadata("design:type",Boolean)],B.prototype,"hostClass",void 0),s.__decorate([a.HostBinding("class.k-editor-resizable"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"resizableClass",null),s.__decorate([a.HostBinding("class.k-state-disabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),s.__decorate([a.HostBinding("class.k-readonly"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isReadonly",null),s.__decorate([a.HostBinding("class.k-ie"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isIE",null),s.__decorate([a.HostBinding("attr.dir"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"dir",null),s.__decorate([a.HostBinding("attr.ariaDisabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"ariaDisabled",null),s.__decorate([a.HostBinding("style.minWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minWidth",null),s.__decorate([a.HostBinding("style.maxWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxWidth",null),s.__decorate([a.HostBinding("style.minHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minHeight",null),s.__decorate([a.HostBinding("style.maxHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxHeight",null),s.__decorate([a.ContentChild(r.ToolBarComponent,{static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"userToolBarComponent",void 0),s.__decorate([a.ContentChild(r.ToolBarComponent,{read:a.ElementRef,static:!1}),s.__metadata("design:type",a.ElementRef)],B.prototype,"userToolBarElement",void 0),s.__decorate([a.ViewChild("dialogsContainer",{read:a.ViewContainerRef,static:!0}),s.__metadata("design:type",a.ViewContainerRef)],B.prototype,"dialogContainer",void 0),s.__decorate([a.ViewChild("content",{read:a.ViewContainerRef,static:!1}),s.__metadata("design:type",a.ViewContainerRef)],B.prototype,"container",void 0),s.__decorate([a.ViewChild("defaultToolbar",{read:a.ElementRef,static:!1}),s.__metadata("design:type",a.ElementRef)],B.prototype,"defaultToolbar",void 0),s.__decorate([a.ViewChild("defaultToolbar",{read:r.ToolBarComponent,static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"defaultToolbarComponent",void 0),n=s.__decorate([a.Component({selector:"kendo-editor",providers:[w.EditorLocalizationService,{provide:k.LocalizationService,useExisting:w.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:i.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return n}),multi:!0},{provide:u.KendoInput,useExisting:a.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",[l.DialogService,k.LocalizationService,a.ChangeDetectorRef,a.NgZone,a.ElementRef])],B));function B(t,e,o,n,i){var r=this;this.dialogService=t,this.localization=e,this.cdr=o,this.ngZone=n,this.element=i,this.iframe=!0,this.applyToWord=!1,this.updateInterval=100,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.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(t){},this.onTouchedCallback=function(t){},d.validatePackage(f.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.subs=c.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe(function(){return r.initialize()})}e.EditorComponent=k},function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),n=(r=o(24).EditorCommandBase,n.__extends(i,r),i.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},i.prototype.pointerdownHandler=function(t){t.preventDefault()},i.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},i);function i(t,e,o,n){var i=r.call(this,t,e,o,n)||this;return i.command=t,i.button=e,i.editor=o,i.localization=n,i}e.EditorCommandButton=n},function(t,e){t.exports=f},function(t,e){t.exports=a},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(14);o.outerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return e+(parseFloat(t.marginLeft)||0+parseFloat(t.marginRight)||0)},o.removeEntries=function(o,e){return Object.keys(o).filter(function(t){return e(t)}).reduce(function(t,e){return Object.assign(t,((t={})[e]=o[e],t))},{})},o.removeEmptyEntries=function(e){return o.removeEntries(e,function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]})},o.isEmpty=function(t){return 0===Object.keys(t).length},o.isNullOrUndefined=function(t){return null==t},o.isPresent=function(t){return!o.isNullOrUndefined(t)},o.detectIE=function(){if(!n.isDocumentAvailable())return!1;var t=window.navigator.userAgent,e=t.indexOf("MSIE "),t=t.indexOf("Trident/");return 0<e||0<t},o.safeString=function(t){return o.isNullOrUndefined(t)?"":t.toString()},o.first=function(t){return t[0]},o.last=function(t){return t[t.length-1]},o.unique=function(t){return Array.from(new Set(t))},o.split=function(e){return function(t){return t.split(e)}},o.trim=function(t){return t.trim()},o.filter=function(e){return function(t){return t.filter(e)}},o.toArray=function(t){return t instanceof Array?t:[t]},o.getUniqueStyleValues=function(t,e){if(t.hasNodesWithoutMarks)return"";t=t.marks.filter(function(t){return"style"===t.type.name}).map(function(t){return t.attrs.style}).map(o.safeString).map(o.split(";")).map(o.filter(function(t){return t.includes(e)})).map(function(t){return 0!==t.length?t:[e+": INVALID"]}).map(o.first).map(o.split(":")).map(o.last).map(o.trim).reduce(function(t,e){return-1<t.indexOf(e)?t:t.concat([e])},[]);return-1<t.indexOf("INVALID")||1!==t.length?"":t[0]},o.conditionallyExecute=function(o){return function(e){return function(t){return e?o(t):t}}},o.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce(function(t,e){return e(t)},t)}}},function(t,e){t.exports=v},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0);e.hasAttrs=function(t,e){for(var o in t)if(o&&null!==t[o]&&o!==e)return!0;return!1},e.getAttrs=function(t,e){var o,n={};for(o in t)o&&null!==t[o]&&o!==e&&(n[o]=t[o]);return n},e.getAttributes=function(t){for(var e,o={},n=t.attributes,i=0;i<n.length;i++)o[(e=n[i]).name]=e.value;return o},e.serializeDOMAttrs=function(t){return Array.from(t.attributes).reduce(function(t,e){return Object.assign({},t,((t={})[e.name]=e.value,t))},{})},e.commonAttributes=function(){return n.__assign({},e.createDefaultAttributes(["class","id","style"]))},e.createDefaultAttributes=function(t){return n.__assign({},(t=void 0===t?[]:t).reduce(function(t,e){return n.__assign({},t,((t={})[e]={default:null},t))},{}))},e.hole=0,e.isSchemaNode=function(e){return function(t){return t.type.name===e}},e.isTable=e.isSchemaNode("table"),e.isTableBody=e.isSchemaNode("table_body"),e.isTableHead=e.isSchemaNode("table_head"),e.isTableFoot=e.isSchemaNode("table_foot"),e.isTableRow=e.isSchemaNode("table_row"),e.isTableCell=e.isSchemaNode("table_cell"),e.isTableHeaderCell=e.isSchemaNode("table_header")},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),n=(r=o(24).EditorCommandBase,n.__extends(i,r),i.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},i.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},i);function i(t,e,o,n){var i=r.call(this,t,e,o,n)||this;return i.dialog=t,i.button=e,i.editor=o,i.localization=n,i}e.EditorCommandDialog=n},function(t,e){t.exports=h},function(t,e){t.exports=u},function(t,e){t.exports=_},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(12),s=o(2),c=o(8),p=o(3),u=o(6),m=o(28),f=o(22),a=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var e=this;this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.disabled=t.disabled})},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},h.prototype.handleValueChange=function(t){this.editor.exec(this.editorCommand,t)},h.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.handleValueChange(t.color)},h.prototype.onOpen=function(t){this.valueCache=t.value,t.reset()},h.prototype.onClose=function(t){var e=this;t.value||(t.value=this.valueCache),this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){return e.editor.view.focus()})},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return c.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:m.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,view:this.view})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.colorPickerButton.nativeElement:this.colorPicker).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"icon",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],h.prototype,"paletteSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"editorCommand",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],h.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"view",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("colorpicker",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("colorpicker",{read:d.ColorPickerComponent,static:!1}),i.__metadata("design:type",d.ColorPickerComponent)],h.prototype,"colorPicker",void 0),i.__decorate([a.ViewChild("colorPickerButton",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],h.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])],h));function h(t,e,o,n){var i=r.call(this)||this;return i.editor=t,i.localization=e,i.dialogService=o,i.ngZone=n,i.tabindex=-1,i.disabled=!1,i.view="palette",i}e.EditorColorPickerComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},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}e.FontSizeDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},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}e.FontFamilyDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},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}e.FormatDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r,a,l,D=o(10);r="undefined"!=typeof WeakMap?(n=new WeakMap,i=function(t){return n.get(t)},function(t,e){return n.set(t,e),e}):(a=[],l=0,i=function(t){for(var e=0;e<a.length;e+=2)if(a[e]===t)return a[e+1]},function(t,e){return 10===l&&(l=0),a[l++]=t,a[l++]=e});function d(t){if(!(D.isTable(t)||D.isTableBody(t)||D.isTableHead(t)||D.isTableFoot(t)))throw new RangeError("Not a table node: "+t.type.name);for(var e=function(t){for(var e=-1,o=!1,n=0;n<t.childCount;n++){var i,r=t.child(n),a=0;if(o)for(var l=0;l<n;l++)for(var d=t.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===e?e=a:e!==a&&(e=Math.max(e,a))}return e}(t),o=t.childCount,n=[],i=0,r=null,a=[],l=0,d=e*o;l<d;l++)n[l]=0;for(var s=0,c=0;s<o;s++){var p=t.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,f=m.colspan,h=m.rowspan,g=m.colwidth,_=0;_<h;_++){if(o<=_+s){(r=r||[]).push({type:"overlong_rowspan",pos:c,n:h-_});break}for(var b=i+_*e,v=0;v<f;v++){0===n[b+v]?n[b+v]=c:(r=r||[]).push({type:"collision",row:s,pos:c,n:f-v});var y,C,k=g&&g[v];k&&(null==(C=a[y=(b+v)%e*2])||C!==k&&1===a[1+y]?(a[y]=k,a[1+y]=1):C===k&&a[1+y]++)}}i+=f,c+=u.nodeSize}for(var w=(s+1)*e,E=0;i<w;)0===n[i++]&&E++;E&&(r=r||[]).push({type:"missing",row:s,n:E}),c++}for(var x=new S(e,o,n,r),T=!1,l=0;!T&&l<a.length;l+=2)null!=a[l]&&a[l+1]<o&&(T=!0);return T&&function(t,e,o){t.problems||(t.problems=[]);for(var n=0,i={};n<t.map.length;n++){var r=t.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=e[(n+d)%t.width*2];null==s||a.attrs.colwidth&&a.attrs.colwidth[d]===s||((l=l||function(t){if(t.colwidth)return t.colwidth.slice();for(var e=[],o=0;o<t.colspan;o++)e.push(0);return e}(a.attrs))[d]=s)}l&&t.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:l})}}}(x,a,t),x}var s=function(t,e,o,n){this.left=t,this.top=e,this.right=o,this.bottom=n};e.Rect=s;var S=(c.get=function(t){return i(t)||r(t,d(t))},c.prototype.findCell=function(t){for(var e=0;e<this.map.length;e++){var o=this.map[e];if(o===t){for(var n=e%this.width,i=Math.floor(e/this.width),r=1+n,a=i+1,l=1;r<this.width&&this.map[e+l]===o;l++)r++;for(l=1;a<this.height&&this.map[e+this.width*l]===o;l++)a++;return new s(n,i,r,a)}}throw new RangeError("No cell with offset "+t+" found")},c.prototype.colCount=function(t){for(var e=0;e<this.map.length;e++)if(this.map[e]===t)return e%this.width;throw new RangeError("No cell with offset "+t+" found")},c.prototype.nextCell=function(t,e,o){var n=this.findCell(t),i=n.left,r=n.right,t=n.top,n=n.bottom;return"horiz"===e?(o<0?0===i:r===this.width)?null:this.map[t*this.width+(o<0?i-1:r)]:(o<0?0===t:n===this.height)?null:this.map[i+this.width*(o<0?t-1:n)]},c.prototype.rectBetween=function(t,e){var o=this.findCell(t),n=o.left,i=o.right,r=o.top,a=o.bottom,l=this.findCell(e),t=l.left,o=l.right,e=l.top,l=l.bottom;return new s(Math.min(n,t),Math.min(r,e),Math.max(i,o),Math.max(a,l))},c.prototype.cellsInRect=function(t){for(var e=[],o={},n=t.top;n<t.bottom;n++)for(var i=t.left;i<t.right;i++){var r=n*this.width+i,a=this.map[r];o[a]||(o[a]=!0,i===t.left&&i&&this.map[r-1]===a||n===t.top&&n&&this.map[r-this.width]===a||e.push(a))}return e},c.prototype.positionAt=function(t,e,o){for(var n=0,i=0;;n++){var r=i+o.child(n).nodeSize;if(n===t){for(var a=e+t*this.width,l=(t+1)*this.width;a<l&&this.map[a]<i;)a++;return a===l?r-1:this.map[a]}i=r}},c);function c(t,e,o,n){this.width=t,this.height=e,this.map=o,this.problems=n}e.TableMap=S},function(t,e){t.exports=b},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),i=(n=o(9).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}e.Messages=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(16),o=(i.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)))},i.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){var t=e.localization.get(e.command);t&&(e.button.showText="overflow",e.button.showIcon="both",e.button.text=t),e.button.toolbarOptions.icon||(e.button.icon=n.commandIcons[e.command]),e.button.title=t})},i.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},i.prototype.clickHandler=function(){},i.prototype.pointerdownHandler=function(t){},i.prototype.onStateChange=function(t){},i);function i(t,e,o,n){this.command=t,this.button=e,this.editor=o,this.localization=n}e.EditorCommandBase=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(18),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.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(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FontSizeDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),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(t){this.dialog.close(),this.editor.exec("insertTable",t),this.editor.view.focus()},d.prototype.setData=function(t){this.editor=t.editor},d.prototype.textFor=function(t){return this.localization.get(t)},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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o}e.InsertTableDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(19),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.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(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FontFamilyDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(12),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.colorPicker.focus()})},s.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.value=t.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(t){this.editor=t.editor,this.value=t.value,this.editorCommand=t.editorCommand,this.paletteSettings=t.paletteSettings,this.icon=t.icon,this.view=t.view},s.prototype.textFor=function(t){return this.localization.get(t)},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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o}e.ColorPickerDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(20),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.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(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FormatDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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(t){return"plugins must be a function, but received "+JSON.stringify(t)+"."},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(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(15),l=o(6),d=o(7),s=o(8),o=o(2),o=(n=l.DialogContentBase,i.__extends(c,n),c.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.hrefInput.nativeElement.focus()})},c.prototype.onCancelAction=function(){this.dialog.close()},c.prototype.onConfirmAction=function(){var t=this.getData();this.editor.exec(this.command,t),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(t,e){"createLink"===this.command&&this.linkForm.addControl("target",new a.FormControl);var o=d.getMark(t,t.schema.marks.link);o?this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:s.isPresent(o.attrs.target),text:this.setLinkText(t)}):t.selection.empty?(e=e.applyToWord?d.expandSelection(t,function(){},e).state:t).selection.empty||this.linkForm.patchValue({text:d.getSelectionText(e)}):this.linkForm.patchValue({text:d.getSelectionText(t)})},c.prototype.textForWithPrefix=function(t){var e="createLink"===this.command?"link":"file";return this.textFor(e+t)},c.prototype.textFor=function(t){return this.localization.get(t)},c.prototype.setLinkText=function(t){var e=t.selection;if(e.empty&&e.$cursor){var o=e.$cursor,e=o.index();return o.parent.child(e).text}return d.getSelectionText(t)},c.prototype.getData=function(){var t=this.linkForm.value;return s.isPresent(this.linkForm.controls.target)&&(t.target=t.target?"_blank":null),t},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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,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}e.FileLinkDialogComponent=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(15),l=o(6),d=o(7),s=o(8),c=o(2),p=o(14),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 t=this;Promise.resolve(null).then(function(){t.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(t){t=d.getNodeFromSelection(t);t&&(this.src.patchValue(t.attrs.src),this.alt.patchValue(t.attrs.alt),this.width.patchValue(t.attrs.width),this.height.patchValue(t.attrs.height))},u.prototype.textFor=function(t){return this.localization.get(t)},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(t){return Number.isNaN(parseInt(t,10))||parseInt(t,10)<=0?"":s.safeString(parseInt(t,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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,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}e.ImageDialogComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),o=o(2),o=(n=a.DialogContentBase,i.__extends(l,n),l.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.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(t){return this.localization.get(t)},l.prototype.indent=function(t){return t.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(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data="",o}e.SourceDialogComponent=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d,n=o(0),h=o(7),g=o(21),_=o(35),i=(d=h.Selection,n.__extends(l,d),l.colSelection=function(t,e){void 0===e&&(e=t);var o=g.TableMap.get(t.node(-1)),n=t.start(-1),i=o.findCell(t.pos-n),r=o.findCell(e.pos-n),a=t.node(0);return i.top<=r.top?(0<i.top&&(t=a.resolve(n+o.map[i.left])),r.bottom<o.height&&(e=a.resolve(n+o.map[o.width*(o.height-1)+r.right-1]))):(0<r.top&&(e=a.resolve(n+o.map[r.left])),i.bottom<o.height&&(t=a.resolve(n+o.map[o.width*(o.height-1)+i.right-1]))),new l(t,e)},l.rowSelection=function(t,e){void 0===e&&(e=t);var o=g.TableMap.get(t.node(-1)),n=t.start(-1),i=o.findCell(t.pos-n),r=o.findCell(e.pos-n),a=t.node(0);return i.left<=r.left?(0<i.left&&(t=a.resolve(n+o.map[i.top*o.width])),r.right<o.width&&(e=a.resolve(n+o.map[o.width*(r.top+1)-1]))):(0<r.left&&(e=a.resolve(n+o.map[r.top*o.width])),i.right<o.width&&(t=a.resolve(n+o.map[o.width*(i.top+1)-1]))),new l(t,e)},l.fromJSON=function(t,e){return new l(t.resolve(e.anchor),t.resolve(e.head))},l.create=function(t,e,o){return void 0===o&&(o=e),new l(t.resolve(e),t.resolve(o))},l.prototype.map=function(t,e){var o=t.resolve(e.map(this.$anchorCell.pos)),t=t.resolve(e.map(this.$headCell.pos));if(_.pointsAtCell(o)&&_.pointsAtCell(t)&&_.inSameTable(o,t)){e=this.$anchorCell.node(-1)!==o.node(-1);return e&&this.isRowSelection()?l.rowSelection(o,t):e&&this.isColSelection()?l.colSelection(o,t):new l(o,t)}return h.TextSelection.between(o,t)},l.prototype.content=function(){for(var t=this.$anchorCell.node(-1),e=g.TableMap.get(t),o=this.$anchorCell.start(-1),n=e.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o),i={},r=[],a=n.top;a<n.bottom;a++){for(var l=[],d=a*e.width+n.left,s=n.left;s<n.right;s++,d++){var c,p,u,m,f=e.map[d];i[f]||(i[f]=!0,c=e.findCell(f),p=t.nodeAt(f),u=n.left-c.left,f=c.right-n.right,(0<u||0<f)&&(m=p.attrs,0<u&&(m=_.removeColSpan(m,0,u)),0<f&&(m=_.removeColSpan(m,m.colspan-f,f)),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(t.child(a).copy(h.Fragment.from(l)))}o=this.isColSelection()&&this.isRowSelection()?t:r;return new h.Slice(h.Fragment.from(o),1,1)},l.prototype.replace=function(t,e){void 0===e&&(e=h.Slice.empty);for(var o=t.steps.length,n=this.ranges,i=0;i<n.length;i++){var r=n[i],a=r.$from,l=r.$to,r=t.mapping.slice(o);t.replace(r.map(a.pos),r.map(l.pos),i?h.Slice.empty:e)}var d=h.Selection.findFrom(t.doc.resolve(t.mapping.slice(o).map(this.to)),-1);d&&t.setSelection(d)},l.prototype.replaceWith=function(t,e){this.replace(t,new h.Slice(h.Fragment.from(e),0,0))},l.prototype.forEachCell=function(t){for(var e=this.$anchorCell.node(-1),o=g.TableMap.get(e),n=this.$anchorCell.start(-1),i=o.cellsInRect(o.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n)),r=0;r<i.length;r++)t(e.nodeAt(i[r]),n+i[r])},l.prototype.isColSelection=function(){var t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(0<Math.min(t,e))return!1;t+=this.$anchorCell.nodeAfter.attrs.rowspan,e+=this.$headCell.nodeAfter.attrs.rowspan;return Math.max(t,e)===this.$headCell.node(-1).childCount},l.prototype.isRowSelection=function(){var t=g.TableMap.get(this.$anchorCell.node(-1)),e=this.$anchorCell.start(-1),o=t.colCount(this.$anchorCell.pos-e),e=t.colCount(this.$headCell.pos-e);if(0<Math.min(o,e))return!1;o+=this.$anchorCell.nodeAfter.attrs.colspan,e+=this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,e)===t.width},l.prototype.eq=function(t){return t instanceof l&&t.$anchorCell.pos===this.$anchorCell.pos&&t.$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(t,e){void 0===e&&(e=t);var o=this,n=t.node(-1),i=g.TableMap.get(n),r=t.start(-1),a=i.rectBetween(t.pos-r,e.pos-r),l=t.node(0),a=i.cellsInRect(a).filter(function(t){return t!==e.pos-r});a.unshift(e.pos-r);a=a.map(function(t){var e=n.nodeAt(t),t=t+r+1;return new h.SelectionRange(l.resolve(t),l.resolve(t+e.content.size))});return(o=d.call(this,a[0].$from,a[0].$to,a)||this).$anchorCell=t,o.$headCell=e,o}(e.CellSelection=i).prototype.visible=!1,h.Selection.jsonID("table_cell",i);var r=(a.prototype.map=function(t){return new a(t.map(this.anchor),t.map(this.head))},a.prototype.resolve=function(t){var e=t.resolve(this.anchor),t=t.resolve(this.head);return"row"===e.parent.type.spec.tableRole&&"row"===t.parent.type.spec.tableRole&&e.index()<e.parent.childCount&&t.index()<t.parent.childCount&&_.inSameTable(e,t)?new i(e,t):h.Selection.near(t,1)},a);function a(t,e){this.anchor=t,this.head=e}},function(t,g,e){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=e(7),a=e(10),l=e(21),_=e(34);g.findParentNodeClosestToPos=function(t,e){for(var o=t.depth;0<o;o--){var n=t.node(o);if(e(n))return{start:t.start(o),pos:0<o?t.before(o):0,depth:o,node:n}}},g.createTable=function(t,e,o){for(var n=t.table,i=t.table_body,r=t.table_row,a=t.table_cell,l=[],d=0;d<e+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(t){for(var e=t.selection.$head,o=e.depth;0<o;o--)if(a.isTableRow(e.node(o)))return!0;return!1},g.setAttr=function(t,e,o){var n,i={};for(n in t)i[n]=t[n];return i[e]=o,i};function b(t){for(var e=t.depth-1;0<e;e--)if(a.isTableRow(t.node(e)))return t.node(0).resolve(t.before(e+1));return null}g.selectedRect=function(t){var e,o=(e=t)instanceof _.CellSelection&&e.$anchorCell?e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell:e instanceof r.NodeSelection&&e.node&&a.isTableCell(e.node)?e.$anchor:b(e.$head)||function(t){for(var e=t.nodeAfter,o=t.pos;e;e=e.firstChild,o++)if("cell"===(n=e.type.spec.tableRole)||"header_cell"===n)return t.doc.resolve(o);for(var n,i=t.nodeBefore,o=t.pos;i;i=i.lastChild,o--)if("cell"===(n=i.type.spec.tableRole)||"header_cell"===n)return t.doc.resolve(o-i.nodeSize)}(e.$head),n=o.node(-1),i=o.start(-1),e=l.TableMap.get(n),o=t instanceof _.CellSelection?e.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):e.findCell(o.pos-i);return o.tableStart=i,o.map=e,o.table=n,o},g.tableNodeTypes=function(t){var e=t.cached.tableNodeTypes;if(!e)for(var o in e=t.cached.tableNodeTypes={},t.nodes){var n=t.nodes[o],o=n.spec.tableRole;o&&(e[o]=n)}return e},g.rowIsHeader=function(t,e,o){for(var n=g.tableNodeTypes(e.type.schema).header_cell,i=0;i<t.width;i++)if(e.nodeAt(t.map[i+o*t.width]).type!==n)return!1;return!0},g.addColSpan=function(t,e,o){var n=g.setAttr(t,"colspan",t.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(e,0,0)}return n},g.removeColSpan=function(t,e,o){t=g.setAttr(t,"colspan",t.colspan-(o=void 0===o?1:o));return t.colwidth&&(t.colwidth=t.colwidth.slice(),t.colwidth.splice(e,o),t.colwidth.some(function(t){return 0<t})||(t.colwidth=null)),t},g.isCellEmpty=function(t){t=t.content;return 1===t.childCount&&t.firstChild.isTextblock&&0===t.firstChild.childCount},g.splitCellWithType=function(h){return function(t,e){var o,n,i=t.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(t){for(var e=t.depth;0<e;e--){var o=t.node(e).type.spec.tableRole;if("cell"===o||"header_cell"===o)return t.node(e)}return null}(i.$from)))return!1;n=b(i.$from).pos}if(1===o.attrs.colspan&&1===o.attrs.rowspan)return!1;if(e){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(t),s=t.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 f=d.left,c=0;f<d.right;f++,c++)f===d.left&&u===d.top||s.insert(p=s.mapping.map(m+d.tableStart,1),h({node:o,row:u,col:f}).createAndFill(a[c]))}s.setNodeMarkup(n,h({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))),e(s)}return!0}},g.pointsAtCell=function(t){return a.isTableRow(t.parent)&&t.nodeAfter},g.inSameTable=function(t,e){return t.depth===e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)},g.cellsOverlapRectangle=function(t,e){for(var o=t.width,n=t.height,i=t.map,r=e.top*o+e.left,a=r,l=(e.bottom-1)*o+e.left,d=r+(e.right-e.left-1),s=e.top;s<e.bottom;s++){if(0<e.left&&i[a]===i[a-1]||e.right<o&&i[d]===i[d+1])return!0;a+=o,d+=o}for(s=e.left;s<e.right;s++){if(0<e.top&&i[r]===i[r-o]||e.bottom<n&&i[l]===i[l+o])return!0;r++,l++}return!1}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(90),r=o(7);e.Schema=r.Schema;var a=o(89),o=r.marks,i=Object.assign(r.nodes,a.tableNodes,i.semanticNodes);e.schema=new r.Schema({marks:o,nodes:n.__assign({},i,{blockquote:n.__assign({},i.blockquote,{content:"inline*"})})})},function(t,e){t.exports=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),s.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,n.prototype.clickHandler.call(this)},i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"selectAll",t,e,o)||this}e.EditorSelectAllButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),s=o(2),c=o(30),s=(n=d.EditorCommandButton,i.__extends(p,n),p.prototype.ngAfterViewInit=function(){if(r.isDevMode&&!this.editor.iframe)throw new Error(c.EditorErrorMessages.printTool)},p.prototype.clickHandler=function(){var t;!this.editor.iframe||(t=(t=(t=(t=this.editor.view)&&t.dom)&&t.ownerDocument)&&t.defaultView)&&t.print()},i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService])],p));function p(t,e,o){o=n.call(this,"print",t,e,o)||this;return o.editor=e,o}e.EditorPrintDirective=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),o=o(1),o=(i.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.hostEl.nativeElement.addEventListener("pointerdown",t.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(t,e){this.hostEl=t,this.zone=e,this.preventDefault=function(t){t.preventDefault()}}e.DropDownToolDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(9),o=o(23),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(t){var e=n.call(this)||this;return e.service=t,e}e.CustomMessagesComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(9),o=o(23),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(t){var e=n.call(this)||this;return e.service=t,e}e.LocalizedMessagesDirective=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"splitCell",t,e,o)||this}e.EditorSplitCellButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"mergeCells",t,e,o)||this}e.EditorMergeCellsButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteTable",t,e,o)||this}e.EditorDeleteTableButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteRow",t,e,o)||this}e.EditorDeleteRowButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteColumn",t,e,o)||this}e.EditorDeleteColumnButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addRowAfter",t,e,o)||this}e.EditorAddRowAfterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addRowBefore",t,e,o)||this}e.EditorAddRowBeforeButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addColumnAfter",t,e,o)||this}e.EditorAddColumnAfterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addColumnBefore",t,e,o)||this}e.EditorAddColumnBeforeButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"cleanFormatting",t,e,o)||this}e.EditorCleanFormattingButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(17),a=o(16),r=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(t){this.colorPicker=t,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}e.EditorBackColorDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(17),a=o(16),r=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(t){this.colorPicker=t,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}e.EditorForeColorDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(3),l=o(11),d=o(4),o=o(2),o=(n=l.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[d.ToolBarButtonComponent,a.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertFile",t,e,o)||this}e.EditorInsertFileButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"superscript",t,e,o)||this}e.EditorSuperscriptButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"subscript",t,e,o)||this}e.EditorSubscriptButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"strikethrough",t,e,o)||this}e.EditorStrikethroughButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"underline",t,e,o)||this}e.EditorUnderlineButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"italic",t,e,o)||this}e.EditorItalicButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"bold",t,e,o)||this}e.EditorBoldButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"viewSource",t,e,o)||this}e.EditorViewSourceButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertUnorderedList",t,e,o)||this}e.EditorInsertUnorderedListButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertOrderedList",t,e,o)||this}e.EditorInsertOrderedListButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"unlink",t,e,o)||this}e.EditorUnlinkButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"createLink",t,e,o)||this}e.EditorCreateLinkButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"outdent",t,e,o)||this}e.EditorOutdentButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"indent",t,e,o)||this}e.EditorIndentButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertImage",t,e,o)||this}e.EditorInsertImageButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"undo",t,e,o)||this}e.EditorUndoButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"redo",t,e,o)||this}e.EditorRedoButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignJustify",t,e,o)||this}e.EditorAlignJustifyButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignRight",t,e,o)||this}e.EditorAlignRightButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignCenter",t,e,o)||this}e.EditorAlignCenterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignLeft",t,e,o)||this}e.EditorAlignLeftButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),n=(Object.defineProperty(r.prototype,"message",{get:function(){var t=this.state,e=t.rows,t=t.cols;return"Create a "+(-1<e?e+1:"")+" "+(-1<t?"x":"")+" "+(-1<t?t+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(t){var e=this.state,o=e.rows,n=e.cols,e=Math.floor(t/this.cols),t=t%this.cols;return e<=o&&t<=n},r.prototype.setState=function(t){var e=Math.floor(t/this.cols),t=t%this.cols;this.state={rows:e,cols:t}},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}e.PopupTableGridComponent=n},function(t,e){t.exports=C},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(37),d=o(22),s=o(4),c=o(77),p=o(8),u=o(3),m=o(2),f=o(6),h=o(26),g=o(14),f=(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(t){this.open=void 0===t?!this.open:t,this.destroyPopup(),this.open&&this.createPopup()},_.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:h.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor})},_.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},_.prototype.onCellClick=function(t){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",t)},_.prototype.canFocus=function(){return!this.disabled},_.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},_.prototype.handleKey=function(t){return t.keyCode===g.Keys.Space||t.keyCode===g.Keys.Enter||!(this.tabIndex=-1)},_.prototype.onTableWizardClick=function(){},_.prototype.createPopup=function(){var t="rtl"===this.editor.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:{horizontal:t,vertical:"bottom"},animate:!0,content:this.popupGridTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});t=this.popupRef.popupElement;t.style.width="190px",t.style.height="164px",t.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,f.DialogService])],_));function _(t,e,o,n){var i=r.call(this)||this;return i.editor=t,i.localization=e,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(t){t=t.insertTable;i.disabled=t.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}e.EditorInsertTableButtonComponent=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(8),s=o(3),c=o(2),p=o(6),u=o(27),o=o(19),c=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontFamilyDropDownList||e.fontFamilyDropDownList.dropDownList.isOpen)||null===t.dataItem.fontName},setTimeout(function(){return e.defaultItem={text:e.title,fontName:null}}),this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.value=d.getUniqueStyleValues(t.selected,"font-family")||null,e.disabled=t.disabled})},m.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("fontFamily",e),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.fontName===e})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontFamilyButton.nativeElement:this.fontFamilyDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("element",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"element",void 0),r.__decorate([a.ViewChild("element",{read:o.FontFamilyDropDownListComponent,static:!1}),r.__metadata("design:type",o.FontFamilyDropDownListComponent)],m.prototype,"fontFamilyDropDownList",void 0),r.__decorate([a.ViewChild("fontFamilyButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"fontFamilyButton",void 0),n=r.__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 '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._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"}],n}e.EditorFontFamilyComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(8),s=o(3),c=o(2),p=o(6),u=o(25),o=o(18),c=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontSizeDropDownList||e.fontSizeDropDownList.dropDownList.isOpen)||null===t.dataItem.size},setTimeout(function(){return e.defaultItem={text:e.title,size:null}}),this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.value=(d.getUniqueStyleValues(t.selected,"font-size").match(/\d+/g)||[null])[0],e.disabled=t.disabled})},m.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("fontSize",e),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.size===parseInt(e,10)})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontSizeButton.nativeElement:this.fontSizeDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("element",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"element",void 0),r.__decorate([a.ViewChild("element",{read:o.FontSizeDropDownListComponent,static:!1}),r.__metadata("design:type",o.FontSizeDropDownListComponent)],m.prototype,"fontSizeDropDownList",void 0),r.__decorate([a.ViewChild("fontSizeButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"fontSizeButton",void 0),n=r.__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 '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._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}],n}e.EditorFontSizeComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(6),s=o(8),c=o(3),p=o(2),u=o(29),o=o(20),p=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var o=this;this.itemDisabled=function(t){return!(o.overflows||!o.formatDropDownList||o.formatDropDownList.dropDownList.isOpen)||null===t.dataItem.tag},setTimeout(function(){return o.defaultItem={text:o.title,tag:null}}),this.subs=this.editor.stateChange.subscribe(function(t){var e=t.format,t=o.data.findIndex(function(t){return t.tag===e.selected.tag});o.value=-1!==t?e.selected.tag:null,o.disabled=e.disabled})},m.prototype.onValueChange=function(e){s.isPresent(e)&&(this.editor.exec("format",{tag:e}),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.tag===e})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){var t=this.formatDropDownList.element;if(t)return s.outerWidth(t.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.formatButton.nativeElement:this.formatDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("formatDropDownList",{static:!1}),r.__metadata("design:type",o.FormatDropDownListComponent)],m.prototype,"formatDropDownList",void 0),r.__decorate([a.ViewChild("formatButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"formatButton",void 0),n=r.__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 '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[c.EditorComponent,d.DialogService,p.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._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"}],n}e.EditorFormatComponent=p},function(t,e){t.exports=m},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(83),a=o(15),l=o(4),d=o(13),s=o(6),c=o(82),p=o(12),u=o(12),m=o(3),f=o(32),h=o(33),g=o(31),_=o(29),b=o(28),v=o(27),y=o(26),C=o(81),k=o(80),w=o(79),E=o(17),x=o(78),T=o(76),D=o(75),S=o(74),B=o(73),I=o(72),A=o(71),O=o(70),M=o(69),z=o(68),L=o(67),P=o(66),F=o(65),R=o(64),j=o(63),W=o(62),H=o(61),V=o(60),N=o(59),$=o(58),U=o(57),J=o(56),K=o(55),G=o(54),q=o(53),Z=o(52),X=o(51),Q=o(50),Y=o(49),tt=o(48),et=o(47),ot=o(46),nt=o(45),it=o(44),rt=o(43),at=o(42),lt=o(41),dt=o(20),st=o(19),ct=o(18),pt=o(25),ut=o(40),mt=o(39),o=o(38),o=[D.EditorAlignLeftButtonDirective,S.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,tt.EditorAddRowAfterButtonDirective,et.EditorDeleteColumnButtonDirective,ot.EditorDeleteRowButtonDirective,nt.EditorDeleteTableButtonDirective,it.EditorMergeCellsButtonDirective,rt.EditorSplitCellButtonDirective,lt.CustomMessagesComponent,at.LocalizedMessagesDirective,ut.DropDownToolDirective,mt.EditorPrintDirective,o.EditorSelectAllButtonDirective],x=[k.EditorFontSizeComponent,w.EditorFontFamilyComponent,C.EditorFormatComponent,E.EditorColorPickerComponent,x.EditorInsertTableButtonComponent],y=[g.FileLinkDialogComponent,f.ImageDialogComponent,h.SourceDialogComponent,_.FormatDialogComponent,b.ColorPickerDialogComponent,v.FontFamilyDialogComponent,pt.FontSizeDialogComponent,y.InsertTableDialogComponent],ct=[T.PopupTableGridComponent,dt.FormatDropDownListComponent,st.FontFamilyDropDownListComponent,ct.FontSizeDropDownListComponent],u=n.__decorate([i.NgModule({declarations:[m.EditorComponent,o,x,y,ct],entryComponents:[y],exports:[m.EditorComponent,o,x,l.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,ct],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,p.ColorPickerModule,s.DialogModule,d.DropDownsModule,u.NumericTextBoxModule,l.ToolBarModule,u.TextBoxModule]})],ft);function ft(){}e.EditorModule=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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',e.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',e.rtlStyles="body { direction: rtl }"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(7),i=o(7);e.getToolbarState=function(e,o){return{alignCenter:{selected:i.isAligned(e,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(e,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(e,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(e,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(e,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(e)},format:{selected:i.activeNode(e),disabled:!1},indent:{selected:!1,disabled:!(i.canIndentAsListItem(e,e.schema.nodes.list_item)||i.canBeIndented(e,i.indentRules))},insertOrderedList:{selected:i.hasNode(e,e.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(e,e.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(e,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(e,i.link)},outdent:{selected:!1,disabled:!(i.canOutdentAsListItem(e,i.outdentRules)||i.canBeIndented(e,i.outdentRules))},redo:{selected:!1,disabled:!i.redo(e)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:i.hasMark(e,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(e,e.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(e,i.subscript),disabled:!1},superscript:{selected:i.hasMark(e,i.superscript),disabled:!1},underline:{selected:i.hasMark(e,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(e)},createLink:{selected:!1,get disabled(){var t=e.selection.empty;return o&&o.applyToWord&&t?i.expandSelection(e,function(){},o).state.selection.empty:t}},insertFile:{selected:!1,disabled:e.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(e)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(e)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(e)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(e)},deleteRow:{selected:!1,disabled:!i.deleteRow(e)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(e)},mergeCells:{selected:!1,disabled:!i.mergeCells(e)},splitCell:{selected:!1,disabled:!i.splitCell(e)},deleteTable:{selected:!1,disabled:!i.deleteTable(e)}}},e.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}},e.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(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var f=e(7),h=e(35),g=e(10),c=e(21),_=e(34);r.insertTable=function(n){return function(t,e){var o=h.createTable(t.schema.nodes,n.rows,n.cols);o&&f.insertNode(o,!0)(t,e)}};function a(t,e,o,i,r,a){var l,d=e.left,s=e.right,n=0<o?-1:0;if(i.node.descendants(function(t,o){var n;r(t)&&(n=-1,t.firstChild.descendants(function(t,e){!g.isTableCell(t)&&!g.isTableHeaderCell(t)||(n+=1)!==s&&n!==d||(e=new f.Selection(a.resolve(e+o+i.start),a.resolve(e+o+i.start)),l=h.selectedRect(e))}))}),!l)return t;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),t.setNodeMarkup(t.mapping.map(l.tableStart+u),null,h.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),t.insert(t.mapping.map(l.tableStart+u),m.createAndFill()))}return t}function i(t,e,i,r,a){var l,d=e.right,s=e.left;if(i.node.descendants(function(t,o){var n;r(t)&&(n=-1,t.firstChild.descendants(function(t,e){(g.isTableCell(t)||g.isTableHeaderCell(t))&&(n+=1)>=s&&n<d&&(t=a.resolve(e+o+i.start+t.nodeSize),t=new f.Selection(t,t),l=h.selectedRect(t))}))}),l)for(var o=l.right-1;function(t,e,o){for(var n=e.map,i=e.table,r=e.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)t.setNodeMarkup(t.mapping.map(r+d),null,h.removeColSpan(s.attrs,o-n.colCount(d)));else{var c=t.mapping.map(r+d);t.delete(c,c+s.nodeSize)}a+=s.attrs.rowspan}}(t,l,o),o!==l.left;o--)l.table=l.tableStart?t.doc.nodeAt(l.tableStart-1):t.doc,l.map=c.TableMap.get(l.table)}r.addColumnBefore=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),i=a(t.tr,o,o.left,n,g.isTableHead,t.doc),i=a(i,o,o.left,n,g.isTableBody,t.doc),e(a(i,o,o.left,n,g.isTableFoot,t.doc))),!0);var o,n,i},r.addColumnAfter=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),i=a(t.tr,o,o.right,n,g.isTableHead,t.doc),i=a(i,o,o.right,n,g.isTableBody,t.doc),e(a(i,o,o.right,n,g.isTableFoot,t.doc))),!0);var o,n,i};function n(t,e,o){for(var n=e.map,i=e.tableStart,r=e.table,a=i,l=0;l<o;l++)a+=r.child(l).nodeSize;var d=[],s=0<o?-1:0;h.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,t.setNodeMarkup(i+c,null,h.setAttr(p,"rowspan",p.rowspan+1)),u+=p.colspan-1):(p=null==s?h.tableNodeTypes(r.type.schema).cell:r.nodeAt(n.map[m+s*n.width]).type,d.push(p.createAndFill()));return t.insert(a,h.tableNodeTypes(r.type.schema).row.create(null,d)),t}r.addRowBefore=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),e(n(t.tr,o,o.top))),!0);var o},r.addRowAfter=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),e(n(t.tr,o,o.bottom))),!0);var o},r.deleteColumn=function(t,e){if(!h.isInTable(t))return!1;if(e){var o=h.selectedRect(t.selection);if(0===o.left&&o.right===o.map.width)return r.deleteTable(t,e);var n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),t=t.tr;i(t,o,n,g.isTableFoot,t.doc),i(t,o,n,g.isTableBody,t.doc),i(t,o,n,g.isTableHead,t.doc),e(t)}return!0};r.deleteRow=function(t,e){if(!h.isInTable(t))return!1;if(e){var o=h.selectedRect(t.selection),n=t.tr;if(0===o.top&&o.bottom===o.map.height)return 1===h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable).node.childCount?r.deleteTable(t,e):l(function(t){return t.type.name===o.table.type.name})(t,e),!0;for(var i=o.bottom-1;function(t,e,o){for(var n=e.map,i=e.table,r=e.tableStart,a=0,l=0;l<o;l++)a+=i.child(l).nodeSize;var e=a+i.child(o).nodeSize,d=t.mapping.maps.length;t.delete(a+r,e+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,t.setNodeMarkup(t.mapping.slice(d).map(m+r),null,h.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(h.setAttr(p.attrs,"rowspan",p.attrs.rowspan-1),p.content),m=n.positionAt(o+1,s,i),t.insert(t.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);e(n)}return!0},r.mergeCells=function(t,e){var o=t.selection;if(!(o instanceof _.CellSelection)||o.$anchorCell.pos===o.$headCell.pos)return!1;var n=h.selectedRect(t.selection),i=n.map;if(h.cellsOverlapRectangle(i,n))return!1;if(e){for(var r=t.tr,a={},l=f.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):(h.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,h.setAttr(h.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,t=h.isCellEmpty(s)?d+1:o,r.replaceWith(t+n.tableStart,o+n.tableStart,l)),r.setSelection(new _.CellSelection(r.doc.resolve(d+n.tableStart))),e(r)}return!0},r.splitCell=function(t,e){var o=h.tableNodeTypes(t.schema);return h.splitCellWithType(function(t){t=t.node;return o[t.type.spec.tableRole]})(t,e)};var l=function(r){return function(t,e){for(var o=t.selection.$anchor,n=o.depth;0<n;n--){var i=o.node(n);if(r(i))return e&&((i=t.tr).delete(o.before(n),o.after(n)).scrollIntoView(),e(i)),!0}return!1}};r.deleteTable=l(g.isTable)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t,e){return r.alignBlocks(r.alignRemoveRules)(t,e)}var i=o(0),r=o(7),a=o(87);e.editorCommands=Object.assign({},{bold:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.bold,{applyToWord:t}))},cleanFormatting:function(t){return r.cleanFormatting(t)},createLink:function(t){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:t.value,applyToWord:t.applyToWord})},fontFamily:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-family",value:t.value,applyToWord:t.applyToWord})},fontSize:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-size",value:t.value+"px",applyToWord:t.applyToWord})},insertFile:function(t){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:t,applyToWord:t.applyToWord})},insertText:function(t){return r.insertText(t)},italic:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.italic,{applyToWord:t}))},strikethrough:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.strikethrough,{applyToWord:t}))},subscript:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.subscript,{applyToWord:t}))},superscript:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.superscript,{applyToWord:t}))},underline:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.underline,{applyToWord:t}))},unlink:function(){return r.removeLink(r.link)},foreColor:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"color",value:t.value,applyToWord:t.applyToWord})},backColor:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"background-color",value:t.value,applyToWord:t.applyToWord})},selectAll:function(){return function(t,e){return r.selectAll(t,e)}}},{alignCenter:function(){return function(t,e){return(r.isAligned(t,r.alignCenterRules)?n:r.alignBlocks(r.alignCenterRules))(t,e)}},alignJustify:function(){return function(t,e){return(r.isAligned(t,r.alignJustifyRules)?n:r.alignBlocks(r.alignJustifyRules))(t,e)}},alignLeft:function(){return function(t,e){return(r.isAligned(t,r.alignLeftRules)?n:r.alignBlocks(r.alignLeftRules))(t,e)}},alignRight:function(){return function(t,e){return(r.isAligned(t,r.alignRightRules)?n:r.alignBlocks(r.alignRightRules))(t,e)}},format:function(t){return r.formatBlockElements(t.tag)},getHTML:function(){return r.getHtml},indent:function(){return r.indent},insertImage:function(t){return r.insertImage(t)},insertOrderedList:function(){return r.toggleOrderedList},insertUnorderedList:function(){return r.toggleUnorderedList},outdent:function(){return r.outdent},redo:function(){return r.redo},setHTML:function(t){var e=t.content,t=t.parseOptions;return r.setHtml(e,"setHTML",t)},undo:function(){return r.undo}},{insertTable:function(t){return a.insertTable(t)},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(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){var e=i.__assign({},t);return 1!==t.colspan?e.colspan=t.colspan:e.colspan=null,1!==t.rowspan?e.rowspan=t.rowspan:e.rowspan=null,r.removeEmptyEntries(e)}var i=o(0),r=o(8),o=o(10);e.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(t){return["table",r.removeEmptyEntries(t.attrs),0]}},table_row:{content:"(table_cell | table_header)*",attrs:i.__assign({},o.commonAttributes()),tableRole:"row",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tr"}],toDOM:function(t){return["tr",r.removeEmptyEntries(t.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(t){return["td",n(t.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(t){return["th",n(t.attrs),0]}},table_body:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tbody"}],toDOM:function(t){return["tbody",r.removeEmptyEntries(t.attrs),0]}},table_foot:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tfoot"}],toDOM:function(t){return["tfoot",r.removeEmptyEntries(t.attrs),0]}},table_head:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"thead"}],toDOM:function(t){return["thead",r.removeEmptyEntries(t.attrs),0]}},table_col:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),selectable:!1,atom:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"col"}],toDOM:function(t){return["col",r.removeEmptyEntries(t.attrs)]}},table_colgroup:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),content:"table_col*",selectable:!1,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"colgroup"}],toDOM:function(t){return["colgroup",r.removeEmptyEntries(t.attrs),0]}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(10);e.semanticTagNames=["article","main","nav","header","footer","aside","section"],e.semanticNodes=e.semanticTagNames.reduce(function(t,e){var o;return Object.assign(t,((t={})[e]=(o=e,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:o,getAttrs:i.getAttributes}],toDOM:function(t){return i.hasAttrs(t.attrs)?[o,i.getAttrs(t.attrs),i.hole]:[o,i.hole]}}),t))},{})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1637689470,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(t,e){t.exports=y},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3);e.EditorComponent=n.EditorComponent;n=o(84);e.EditorModule=n.EditorModule;n=o(36);e.schema=n.schema,e.Schema=n.Schema;o=o(7);e.EditorState=o.EditorState,e.Plugin=o.Plugin,e.PluginKey=o.PluginKey,e.Transaction=o.Transaction,e.EditorView=o.EditorView,e.Decoration=o.Decoration,e.DecorationSet=o.DecorationSet,e.NodeType=o.NodeType,e.Node=o.Node,e.MarkType=o.MarkType,e.Mark=o.Mark,e.InputRule=o.InputRule,e.inputRules=o.inputRules,e.wrappingInputRule=o.wrappingInputRule,e.textblockTypeInputRule=o.textblockTypeInputRule,e.keymap=o.keymap,e.baseKeymap=o.baseKeymap,e.history=o.history,e.dropCursor=o.dropCursor,e.gapCursor=o.gapCursor,e.tableNodes=o.tableNodes,e.getSelectionText=o.getSelectionText,function(t){for(var e in t)r(e,t[e])}(e)}],i={},n.m=o,n.c=i,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}}});
|
|
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)}}});
|