@progress/kendo-angular-editor 2.4.1-dev.202110261541 → 2.4.2

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