@progress/kendo-angular-editor 2.4.2 → 2.5.0-dev.202111240844
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/error-messages.js +2 -1
- package/dist/es/common/styles.js +1 -1
- package/dist/es/config/command-icons.js +4 -2
- package/dist/es/config/commands.js +32 -31
- package/dist/es/editor-toolbar-state.js +20 -2
- package/dist/es/editor.component.js +7 -5
- package/dist/es/editor.module.js +7 -1
- package/dist/es/index.js +2 -0
- package/dist/es/localization/messages.js +8 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/print/editor-print-button.directive.js +67 -0
- package/dist/es/tools/select-all/select-all-button.directive.js +48 -0
- package/dist/es/tools/shared/editor-command-base.js +10 -10
- package/dist/es/tools/tables/editor-insert-table-button.component.js +5 -8
- package/dist/es2015/common/commands.d.ts +5 -1
- package/dist/es2015/common/error-messages.js +2 -1
- package/dist/es2015/common/styles.d.ts +1 -1
- package/dist/es2015/common/styles.js +72 -0
- package/dist/es2015/config/command-icons.d.ts +2 -2
- package/dist/es2015/config/command-icons.js +4 -2
- package/dist/es2015/config/commands.js +31 -30
- package/dist/es2015/editor-toolbar-state.js +20 -2
- package/dist/es2015/editor.component.d.ts +5 -0
- package/dist/es2015/editor.component.js +10 -4
- package/dist/es2015/editor.module.js +7 -1
- package/dist/es2015/index.d.ts +2 -0
- package/dist/es2015/index.js +2 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/localization/messages.d.ts +8 -0
- package/dist/es2015/localization/messages.js +8 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/print/editor-print-button.directive.d.ts +33 -0
- package/dist/es2015/tools/print/editor-print-button.directive.js +64 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +29 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.js +46 -0
- package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -3
- package/dist/es2015/tools/shared/editor-command-base.js +9 -9
- package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -3
- package/dist/es2015/tools/tables/editor-insert-table-button.component.d.ts +2 -3
- package/dist/es2015/tools/tables/editor-insert-table-button.component.js +13 -8
- package/dist/fesm2015/index.js +263 -57
- package/dist/fesm5/index.js +188 -61
- package/dist/npm/common/error-messages.js +2 -1
- package/dist/npm/common/styles.js +1 -1
- package/dist/npm/config/command-icons.js +4 -2
- package/dist/npm/config/commands.js +33 -31
- package/dist/npm/editor-toolbar-state.js +20 -2
- package/dist/npm/editor.component.js +6 -4
- package/dist/npm/editor.module.js +7 -1
- package/dist/npm/index.js +4 -0
- package/dist/npm/localization/messages.js +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/print/editor-print-button.directive.js +69 -0
- package/dist/npm/tools/select-all/select-all-button.directive.js +50 -0
- package/dist/npm/tools/shared/editor-command-base.js +10 -10
- package/dist/npm/tools/tables/editor-insert-table-button.component.js +5 -8
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
System.register("@progress/kendo-angular-editor",["@progress/kendo-editor-common","tslib","@angular/core","@angular/forms","@progress/kendo-angular-toolbar","@angular/common","@progress/kendo-angular-dropdowns","@progress/kendo-angular-dialog","@progress/kendo-angular-buttons","@progress/kendo-angular-inputs","rxjs","rxjs/operators","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-popup"],function(r){var a,l,d,s,c,p,u,m,f,h,g,_,b,v,y,C;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){a=e(t)},function(t){l=e(t)},function(t){d=e(t)},function(t){s=e(t)},function(t){c=e(t)},function(t){p=e(t)},function(t){u=e(t)},function(t){m=e(t)},function(t){f=e(t)},function(t){h=e(t)},function(t){g=e(t)},function(t){_=e(t)},function(t){b=e(t)},function(t){v=e(t)},function(t){y=e(t)},function(t){C=e(t)}],execute:function(){function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,i;o=[function(t,e){t.exports=l},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),o=o(9),o=(n=o.LocalizationService,i.__extends(a,n),i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],a));function a(t,e,o){return n.call(this,t,e,o)||this}e.EditorLocalizationService=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=o(0),a=o(1),i=o(15),c=o(36),p=o(22),r=o(4),l=o(6),u=o(14),m=o(7),d=o(90),f=o(89),h=o(35),g=o(86),_=o(84),b=o(8),v=o(32),y=o(31),C=o(30),k=o(9),w=o(2),E=o(83),x=o(82),T={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!1,removeMsClasses:!1,removeMsStyles:!1,stripTags:[""]},D=b.conditionallyExecute(m.removeComments),S=b.conditionallyExecute(m.sanitize),k=(n=B,Object.defineProperty(B.prototype,"value",{get:function(){var t=this._view?this.getSource():this._value;return"<p></p>"===t?this._value&&"":t},set:function(t){this._previousValue!==t&&(this._value=t,this._previousValue=t,this._view)&&(this.iframe&&!this.container.element.nativeElement.contentWindow||this.exec("setHTML",{content:this._value||"",parseOptions:{preserveWhitespace:this.preserveWhitespace}}))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(_.disabledToolBarState):this.stateChange.next(_.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"readonly",{get:function(){return this._readonly},set:function(t){var e;this._readonly=t||!1,this._view&&(e=void 0,t=(e=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode,this._view.dom.contains(t)&&e.getSelection().removeAllRanges(),e=this._view.state.doc,e=this._view.state.tr.setSelection(m.TextSelection.create(e,1)),this._view.dispatch(e)),this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(_.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(_.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"schema",{get:function(){return this._schema},set:function(t){if(a.isDevMode){if(!(t instanceof m.Schema))throw new Error(x.EditorErrorMessages.schemaType);if(this._view)throw new Error(x.EditorErrorMessages.setSchemaOnce)}this._schema=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"plugins",{get:function(){return this._plugins},set:function(t){if(a.isDevMode){if("function"!=typeof t)throw new Error(x.EditorErrorMessages.pluginsCallbackType(t));if(this._view)throw new Error(x.EditorErrorMessages.setPluginsOnce)}this._plugins=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){if(a.isDevMode&&this._view)throw new Error(x.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isIE",{get:function(){return this.iframe&&b.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minWidth",{get:function(){var t=this.resizable;return t.minWidth?t.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxWidth",{get:function(){var t=this.resizable;return t.maxWidth?t.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minHeight",{get:function(){var t=this.resizable;return t.minHeight?t.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxHeight",{get:function(){var t=this.resizable;return t.maxHeight?t.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"selectionText",{get:function(){return this._view&&this._view.state?m.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe(function(t){t=t.rtl;e.direction=t?"rtl":"ltr"}))},B.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},B.prototype.ngOnChanges=function(t){var e=this;t.iframe&&!t.iframe.isFirstChange()&&this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return e.initialize()}),t.resizable&&!t.resizable.isFirstChange()&&this.normalizeSize()},B.prototype.setDisabledState=function(t){this.disabled=t},B.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},B.prototype.exec=function(e,t){"setHTML"===e&&"string"==typeof t?t={content:t,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some(function(t){return t===e})&&(t={value:t,applyToWord:this.applyToWord}),g.editorCommands[e](t)(this._view.state,this._view.dispatch,this._view)},B.prototype.openDialog=function(t){var e={createLink:{content:C.FileLinkDialogComponent},insertFile:{content:C.FileLinkDialogComponent},insertImage:{content:y.ImageDialogComponent},viewSource:{content:v.SourceDialogComponent,height:400,width:500}},e=Object.assign({appendTo:this.dialogContainer},e[t]);this.toolbar.toggle(!1);e=this.dialogService.open(e).content.instance;"createLink"!==t&&"insertFile"!==t||(e.command=t),e.editor=this,e.setData(this._view.state,{applyToWord:this.applyToWord})},B.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},B.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},B.prototype.getSource=function(){return m.getHtml(this._view.state)},B.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},B.prototype.writeValue=function(t){this.value=null===t?void 0:t},B.prototype.registerOnChange=function(t){this.onChangeCallback=t},B.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},B.prototype.isEmpty=function(){return!1},B.prototype.initialize=function(){var t,o,e,n,i,r,a,l,d=this;u.isDocumentAvailable()&&(t=this.schema||h.schema,l=(o=this).container.element.nativeElement,e=m.parseContent((this.value||"").trim(),t,{preserveWhitespace:this.preserveWhitespace}),this.iframe?((i=(n=l.contentDocument).createElement("meta")).setAttribute("charset","utf-8"),n.head.appendChild(i),[E.defaultStyle,E.tablesStyles,"rtl"===this.dir?E.rtlStyles:void 0].forEach(function(t){var e;t&&((e=n.createElement("style")).appendChild(n.createTextNode(t)),n.head.appendChild(e))}),i=n.createElement("div"),n.body.appendChild(i)):(i=document.createElement("div"),l.appendChild(i)),i=[new m.Plugin({key:new m.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:d.readonly?"0":""}}}}),new m.Plugin({key:new m.PluginKey("toolbar-tools-update"),view:function(){return{update:function(t){d.disabled||d.stateChange.next(d.readonly?_.disabledToolBarState:_.getToolbarState(t.state,{applyToWord:d.applyToWord}))}}}}),new m.Plugin({key:new m.PluginKey("editor-filter-disabled-state"),filterTransaction:function(){return!d.disabled}}),m.history(),m.keymap(m.buildListKeymap(t)),m.keymap(m.buildKeymap(t,{applyToWord:this.applyToWord})),m.keymap(m.baseKeymap),m.gapCursor()],this.placeholder&&i.push(m.placeholder(this.placeholder)),r=m.EditorState.create({schema:t,doc:e,plugins:b.isPresent(this.plugins)?this.plugins(i):i}),this.iframe?this.viewMountElement=l.contentDocument.querySelector("div"):this.viewMountElement=l.querySelector("div"),this.ngZone.runOutsideAngular(function(){d._view=new m.EditorView({mount:d.viewMountElement},{state:r,editable:function(){return!d.readonly},dispatchTransaction:function(t){this.updateState(this.state.apply(t));var e=o.value;m.hasSameMarkup(e,o._previousValue,this.state.schema)||(o._previousValue=e,o.ngZone.run(function(){return o.valueModified.next(e)}))},transformPastedHTML:function(t){var e=s.__assign({},T,d.pasteCleanupSettings),o=b.pipe(D(e.removeHtmlComments),S(e.removeInvalidHTML))(t),t=function(t){if("all"===t.removeAttributes)return{"*":m.removeAttribute};var e=b.removeEmptyEntries({style:t.removeMsStyles?m.sanitizeStyleAttr:void 0,class:t.removeMsClasses?m.sanitizeClassAttr:void 0});return t.removeAttributes.reduce(function(t,e){return s.__assign({},t,((t={})[e]=m.removeAttribute,t))},e)}(e);return m.pasteCleanup(o,{convertMsLists:e.convertMsLists,stripTags:e.stripTags.join("|"),attributes:t})}})}),this._view&&(l=void 0,a=this.element.nativeElement.querySelector(".k-editor-content").classList,l=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(c.fromEvent(l,"focusin").subscribe(function(){d.readonly&&a.add("k-state-focused"),d.focusChangedProgrammatically||d.ngZone.run(function(){return d.onFocus.emit()})})),this.subs.add(c.fromEvent(l,"focusout").subscribe(function(){d.readonly&&a.remove("k-state-focused"),d.focusChangedProgrammatically||d.ngZone.run(function(){return d.onBlur.emit()})}))),this.subs.add(this.stateChange.subscribe(function(){(d.userToolBarComponent||d).cdr.detectChanges()})),this.subs.add(c.merge(this.valueModified.pipe(p.filter(function(){return 0<d.updateInterval}),p.auditTime(this.updateInterval)),this.valueModified.pipe(p.filter(function(){return 0===d.updateInterval}))).subscribe(function(t){d.onChangeCallback(t),d.valueChange.emit(t),d.cdr.markForCheck()})),this.subs.add(c.fromEvent(this.viewMountElement,"keyup").pipe(p.map(function(t){return t.keyCode}),p.filter(function(t){return 121===t}),p.map(function(){return d.userToolBarElement||d.defaultToolbar})).subscribe(function(t){return t.nativeElement.focus()})),this.subs.add(c.fromEvent(this.viewMountElement,"blur").pipe(p.filter(function(t){return!d.viewMountElement.contains(t.relatedTarget)})).subscribe(function(){return d.onTouchedCallback()})))},B.prototype.normalizeSize=function(){var t,e=this;"object"!=typeof this.resizable||this._styleObserver||(t=this.element.nativeElement,this._styleObserver=new MutationObserver(function(){e.ngZone.runOutsideAngular(function(){return e.normalizeProperties(t)})}),this._styleObserver.observe(t,{attributeFilter:["style"]}))},B.prototype.normalizeProperties=function(i){var t=Object.keys(this.resizable),r=parseInt(i.style.width,10),a=parseInt(i.style.height,10),l=this.resizable;t.forEach(function(t){var e=t.startsWith("min"),o=!e,n=t.endsWith("Width"),t=!n;e&&n?r<l.minWidth&&(i.style.width=l.minWidth+"px"):e&&t?a<l.minHeight&&(i.style.height=l.minHeight+"px"):o&&n?r>l.maxWidth&&(i.style.width=l.maxWidth+"px"):a>l.maxHeight&&(i.style.height=l.maxHeight+"px")})},s.__decorate([a.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"value",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"disabled",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"readonly",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean)],B.prototype,"iframe",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"applyToWord",void 0),s.__decorate([a.Input(),s.__metadata("design:type",m.Schema),s.__metadata("design:paramtypes",[m.Schema])],B.prototype,"schema",null),s.__decorate([a.Input(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[Function])],B.prototype,"plugins",null),s.__decorate([a.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"placeholder",null),s.__decorate([a.Input(),s.__metadata("design:type",Number)],B.prototype,"updateInterval",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"preserveWhitespace",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"pasteCleanupSettings",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"resizable",void 0),s.__decorate([a.Output(),s.__metadata("design:type",a.EventEmitter)],B.prototype,"valueChange",void 0),s.__decorate([a.Output("focus"),s.__metadata("design:type",a.EventEmitter)],B.prototype,"onFocus",void 0),s.__decorate([a.Output("blur"),s.__metadata("design:type",a.EventEmitter)],B.prototype,"onBlur",void 0),s.__decorate([a.HostBinding("class.k-editor"),s.__metadata("design:type",Boolean)],B.prototype,"hostClass",void 0),s.__decorate([a.HostBinding("class.k-editor-resizable"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"resizableClass",null),s.__decorate([a.HostBinding("class.k-state-disabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),s.__decorate([a.HostBinding("class.k-readonly"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isReadonly",null),s.__decorate([a.HostBinding("class.k-ie"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isIE",null),s.__decorate([a.HostBinding("attr.dir"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"dir",null),s.__decorate([a.HostBinding("attr.ariaDisabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"ariaDisabled",null),s.__decorate([a.HostBinding("style.minWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minWidth",null),s.__decorate([a.HostBinding("style.maxWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxWidth",null),s.__decorate([a.HostBinding("style.minHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minHeight",null),s.__decorate([a.HostBinding("style.maxHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxHeight",null),s.__decorate([a.ContentChild(r.ToolBarComponent,{static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"userToolBarComponent",void 0),s.__decorate([a.ContentChild(r.ToolBarComponent,{read:a.ElementRef,static:!1}),s.__metadata("design:type",a.ElementRef)],B.prototype,"userToolBarElement",void 0),s.__decorate([a.ViewChild("dialogsContainer",{read:a.ViewContainerRef,static:!0}),s.__metadata("design:type",a.ViewContainerRef)],B.prototype,"dialogContainer",void 0),s.__decorate([a.ViewChild("content",{read:a.ViewContainerRef,static:!1}),s.__metadata("design:type",a.ViewContainerRef)],B.prototype,"container",void 0),s.__decorate([a.ViewChild("defaultToolbar",{read:a.ElementRef,static:!1}),s.__metadata("design:type",a.ElementRef)],B.prototype,"defaultToolbar",void 0),s.__decorate([a.ViewChild("defaultToolbar",{read:r.ToolBarComponent,static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"defaultToolbarComponent",void 0),n=s.__decorate([a.Component({selector:"kendo-editor",providers:[w.EditorLocalizationService,{provide:k.LocalizationService,useExisting:w.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:i.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return n}),multi:!0},{provide:u.KendoInput,useExisting:a.forwardRef(function(){return n})}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."\n bold="Bold"\n i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."\n cleanFormatting="Clean formatting"\n i18n-createLink="kendo.editor.createLink|The title of the tool that creates hyperlinks."\n createLink="Insert link"\n i18n-dialogApply="kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs."\n dialogApply="Apply"\n i18n-dialogCancel="kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs."\n dialogCancel="Cancel"\n i18n-dialogInsert="kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs."\n dialogInsert="Insert"\n i18n-dialogUpdate="kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs."\n dialogUpdate="Update"\n i18n-fileText="kendo.editor.fileText|The caption for the file text in the insertFile dialog."\n fileText="Text"\n i18n-fileTitle="kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog."\n fileTitle="Title"\n i18n-fileWebAddress="kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog."\n fileWebAddress="Web address"\n i18n-fontFamily="kendo.editor.fontFamily|The title of the tool that changes the text font."\n fontFamily="Select font family"\n i18n-fontSize="kendo.editor.fontSize|The title of the tool that changes the text size."\n fontSize="Select font size"\n i18n-foreColor="kendo.editor.foreColor|The title of the tool that changes the text color."\n foreColor="Color"\n i18n-format="kendo.editor.format|The title of the tool that lets users choose block formats."\n format="Format"\n i18n-imageAltText="kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog."\n imageAltText="Alternate text"\n i18n-imageHeight="kendo.editor.imageHeight|The caption for the image height in the insertImage dialog."\n imageHeight="Height (px)"\n i18n-imageWebAddress="kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog."\n imageWebAddress="Web address"\n i18n-imageWidth="kendo.editor.imageWidth|The caption for the image width in the insertImage dialog."\n imageWidth="Width (px)"\n i18n-indent="kendo.editor.indent|The title of the tool that indents the content."\n indent="Indent"\n i18n-insertFile="kendo.editor.insertFile|The title of the tool that inserts links to files."\n insertFile="Insert file"\n i18n-insertImage="kendo.editor.insertImage|The title of the tool that inserts images."\n insertImage="Insert image"\n i18n-insertOrderedList="kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list."\n insertOrderedList="Insert ordered list"\n i18n-insertUnorderedList="kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list."\n insertUnorderedList="Insert unordered list"\n i18n-italic="kendo.editor.italic|The title of the tool that makes text italicized."\n italic="Italic"\n i18n-linkOpenInNewWindow="kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog."\n linkOpenInNewWindow="Open link in new window"\n i18n-linkText="kendo.editor.linkText|The caption for the link text in the createLink dialog."\n linkText="Text"\n i18n-linkTitle="kendo.editor.linkTitle|The caption for the link title in the createLink dialog."\n linkTitle="Title"\n i18n-linkWebAddress="kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog."\n linkWebAddress="Web address"\n i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."\n outdent="Outdent"\n i18n-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 "]}),s.__metadata("design:paramtypes",[l.DialogService,k.LocalizationService,a.ChangeDetectorRef,a.NgZone,a.ElementRef])],B));function B(t,e,o,n,i){var r=this;this.dialogService=t,this.localization=e,this.cdr=o,this.ngZone=n,this.element=i,this.iframe=!0,this.applyToWord=!1,this.updateInterval=100,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.hostClass=!0,this.stateChange=new c.BehaviorSubject(_.initialToolBarState),this.valueModified=new c.Subject,this._readonly=!1,this._placeholder="",this.afterViewInit=new c.Subject,this.contentAreaLoaded=new c.Subject,this.onChangeCallback=function(t){},this.onTouchedCallback=function(t){},d.validatePackage(f.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.subs=c.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe(function(){return r.initialize()})}e.EditorComponent=k},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),n=(r=o(24).EditorCommandBase,n.__extends(i,r),i.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},i.prototype.pointerdownHandler=function(t){t.preventDefault()},i.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},i);function i(t,e,o,n){var i=r.call(this,t,e,o,n)||this;return i.command=t,i.button=e,i.editor=o,i.localization=n,i}e.EditorCommandButton=n},function(t,e){t.exports=m},function(t,e){t.exports=a},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(14);o.outerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return e+(parseFloat(t.marginLeft)||0+parseFloat(t.marginRight)||0)},o.removeEntries=function(o,e){return Object.keys(o).filter(function(t){return e(t)}).reduce(function(t,e){return Object.assign(t,((t={})[e]=o[e],t))},{})},o.removeEmptyEntries=function(e){return o.removeEntries(e,function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]})},o.isEmpty=function(t){return 0===Object.keys(t).length},o.isNullOrUndefined=function(t){return null==t},o.isPresent=function(t){return!o.isNullOrUndefined(t)},o.detectIE=function(){if(!n.isDocumentAvailable())return!1;var t=window.navigator.userAgent,e=t.indexOf("MSIE "),t=t.indexOf("Trident/");return 0<e||0<t},o.safeString=function(t){return o.isNullOrUndefined(t)?"":t.toString()},o.first=function(t){return t[0]},o.last=function(t){return t[t.length-1]},o.unique=function(t){return Array.from(new Set(t))},o.split=function(e){return function(t){return t.split(e)}},o.trim=function(t){return t.trim()},o.filter=function(e){return function(t){return t.filter(e)}},o.toArray=function(t){return t instanceof Array?t:[t]},o.getUniqueStyleValues=function(t,e){if(t.hasNodesWithoutMarks)return"";t=t.marks.filter(function(t){return"style"===t.type.name}).map(function(t){return t.attrs.style}).map(o.safeString).map(o.split(";")).map(o.filter(function(t){return t.includes(e)})).map(function(t){return 0!==t.length?t:[e+": INVALID"]}).map(o.first).map(o.split(":")).map(o.last).map(o.trim).reduce(function(t,e){return-1<t.indexOf(e)?t:t.concat([e])},[]);return-1<t.indexOf("INVALID")||1!==t.length?"":t[0]},o.conditionallyExecute=function(o){return function(e){return function(t){return e?o(t):t}}},o.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce(function(t,e){return e(t)},t)}}},function(t,e){t.exports=y},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0);e.hasAttrs=function(t,e){for(var o in t)if(o&&null!==t[o]&&o!==e)return!0;return!1},e.getAttrs=function(t,e){var o,n={};for(o in t)o&&null!==t[o]&&o!==e&&(n[o]=t[o]);return n},e.getAttributes=function(t){for(var e,o={},n=t.attributes,i=0;i<n.length;i++)o[(e=n[i]).name]=e.value;return o},e.serializeDOMAttrs=function(t){return Array.from(t.attributes).reduce(function(t,e){return Object.assign({},t,((t={})[e.name]=e.value,t))},{})},e.commonAttributes=function(){return n.__assign({},e.createDefaultAttributes(["class","id","style"]))},e.createDefaultAttributes=function(t){return n.__assign({},(t=void 0===t?[]:t).reduce(function(t,e){return n.__assign({},t,((t={})[e]={default:null},t))},{}))},e.hole=0,e.isSchemaNode=function(e){return function(t){return t.type.name===e}},e.isTable=e.isSchemaNode("table"),e.isTableBody=e.isSchemaNode("table_body"),e.isTableHead=e.isSchemaNode("table_head"),e.isTableFoot=e.isSchemaNode("table_foot"),e.isTableRow=e.isSchemaNode("table_row"),e.isTableCell=e.isSchemaNode("table_cell"),e.isTableHeaderCell=e.isSchemaNode("table_header")},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),n=(r=o(24).EditorCommandBase,n.__extends(i,r),i.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},i.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},i);function i(t,e,o,n){var i=r.call(this,t,e,o,n)||this;return i.dialog=t,i.button=e,i.editor=o,i.localization=n,i}e.EditorCommandDialog=n},function(t,e){t.exports=h},function(t,e){t.exports=u},function(t,e){t.exports=b},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",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(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(12),s=o(2),c=o(8),p=o(3),u=o(6),m=o(28),f=o(22),a=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var e=this;this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.disabled=t.disabled})},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},h.prototype.handleValueChange=function(t){this.editor.exec(this.editorCommand,t)},h.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.handleValueChange(t.color)},h.prototype.onOpen=function(t){this.valueCache=t.value,t.reset()},h.prototype.onClose=function(t){var e=this;t.value||(t.value=this.valueCache),this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){return e.editor.view.focus()})},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return c.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:m.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,view:this.view})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.colorPickerButton.nativeElement:this.colorPicker).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"icon",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],h.prototype,"paletteSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"editorCommand",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],h.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"view",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("colorpicker",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("colorpicker",{read:d.ColorPickerComponent,static:!1}),i.__metadata("design:type",d.ColorPickerComponent)],h.prototype,"colorPicker",void 0),i.__decorate([a.ViewChild("colorPickerButton",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"colorPickerButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[p.EditorComponent,s.EditorLocalizationService,u.DialogService,a.NgZone])],h));function h(t,e,o,n){var i=r.call(this)||this;return i.editor=t,i.localization=e,i.dialogService=o,i.ngZone=n,i.tabindex=-1,i.disabled=!1,i.view="palette",i}e.EditorColorPickerComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}e.FontSizeDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}e.FontFamilyDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'blockquote\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}e.FormatDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r,a,l,D=o(10);r="undefined"!=typeof WeakMap?(n=new WeakMap,i=function(t){return n.get(t)},function(t,e){return n.set(t,e),e}):(a=[],l=0,i=function(t){for(var e=0;e<a.length;e+=2)if(a[e]===t)return a[e+1]},function(t,e){return 10===l&&(l=0),a[l++]=t,a[l++]=e});function d(t){if(!(D.isTable(t)||D.isTableBody(t)||D.isTableHead(t)||D.isTableFoot(t)))throw new RangeError("Not a table node: "+t.type.name);for(var e=function(t){for(var e=-1,o=!1,n=0;n<t.childCount;n++){var i,r=t.child(n),a=0;if(o)for(var l=0;l<n;l++)for(var d=t.child(l),s=0;s<d.childCount;s++)l+(i=d.child(s)).attrs.rowspan>n&&(a+=i.attrs.colspan);for(s=0;s<r.childCount;s++)a+=(i=r.child(s)).attrs.colspan,1<i.attrs.rowspan&&(o=!0);-1===e?e=a:e!==a&&(e=Math.max(e,a))}return e}(t),o=t.childCount,n=[],i=0,r=null,a=[],l=0,d=e*o;l<d;l++)n[l]=0;for(var s=0,c=0;s<o;s++){var p=t.child(s);for(c++,l=0;;l++){for(;i<n.length&&0!==n[i];)i++;if(l===p.childCount)break;for(var u=p.child(l),m=u.attrs,f=m.colspan,h=m.rowspan,g=m.colwidth,_=0;_<h;_++){if(o<=_+s){(r=r||[]).push({type:"overlong_rowspan",pos:c,n:h-_});break}for(var b=i+_*e,v=0;v<f;v++){0===n[b+v]?n[b+v]=c:(r=r||[]).push({type:"collision",row:s,pos:c,n:f-v});var y,C,k=g&&g[v];k&&(null==(C=a[y=(b+v)%e*2])||C!==k&&1===a[1+y]?(a[y]=k,a[1+y]=1):C===k&&a[1+y]++)}}i+=f,c+=u.nodeSize}for(var w=(s+1)*e,E=0;i<w;)0===n[i++]&&E++;E&&(r=r||[]).push({type:"missing",row:s,n:E}),c++}for(var x=new S(e,o,n,r),T=!1,l=0;!T&&l<a.length;l+=2)null!=a[l]&&a[l+1]<o&&(T=!0);return T&&function(t,e,o){t.problems||(t.problems=[]);for(var n=0,i={};n<t.map.length;n++){var r=t.map[n];if(!i[r]){i[r]=!0;for(var a=o.nodeAt(r),l=null,d=0;d<a.attrs.colspan;d++){var s=e[(n+d)%t.width*2];null==s||a.attrs.colwidth&&a.attrs.colwidth[d]===s||((l=l||function(t){if(t.colwidth)return t.colwidth.slice();for(var e=[],o=0;o<t.colspan;o++)e.push(0);return e}(a.attrs))[d]=s)}l&&t.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:l})}}}(x,a,t),x}var s=function(t,e,o,n){this.left=t,this.top=e,this.right=o,this.bottom=n};e.Rect=s;var S=(c.get=function(t){return i(t)||r(t,d(t))},c.prototype.findCell=function(t){for(var e=0;e<this.map.length;e++){var o=this.map[e];if(o===t){for(var n=e%this.width,i=Math.floor(e/this.width),r=1+n,a=i+1,l=1;r<this.width&&this.map[e+l]===o;l++)r++;for(l=1;a<this.height&&this.map[e+this.width*l]===o;l++)a++;return new s(n,i,r,a)}}throw new RangeError("No cell with offset "+t+" found")},c.prototype.colCount=function(t){for(var e=0;e<this.map.length;e++)if(this.map[e]===t)return e%this.width;throw new RangeError("No cell with offset "+t+" found")},c.prototype.nextCell=function(t,e,o){var n=this.findCell(t),i=n.left,r=n.right,t=n.top,n=n.bottom;return"horiz"===e?(o<0?0===i:r===this.width)?null:this.map[t*this.width+(o<0?i-1:r)]:(o<0?0===t:n===this.height)?null:this.map[i+this.width*(o<0?t-1:n)]},c.prototype.rectBetween=function(t,e){var o=this.findCell(t),n=o.left,i=o.right,r=o.top,a=o.bottom,l=this.findCell(e),t=l.left,o=l.right,e=l.top,l=l.bottom;return new s(Math.min(n,t),Math.min(r,e),Math.max(i,o),Math.max(a,l))},c.prototype.cellsInRect=function(t){for(var e=[],o={},n=t.top;n<t.bottom;n++)for(var i=t.left;i<t.right;i++){var r=n*this.width+i,a=this.map[r];o[a]||(o[a]=!0,i===t.left&&i&&this.map[r-1]===a||n===t.top&&n&&this.map[r-this.width]===a||e.push(a))}return e},c.prototype.positionAt=function(t,e,o){for(var n=0,i=0;;n++){var r=i+o.child(n).nodeSize;if(n===t){for(var a=e+t*this.width,l=(t+1)*this.width;a<l&&this.map[a]<i;)a++;return a===l?r-1:this.map[a]}i=r}},c);function c(t,e,o,n){this.width=t,this.height=e,this.map=o,this.problems=n}e.TableMap=S},function(t,e){t.exports=_},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),i=(n=o(9).ComponentMessages,i.__extends(a,n),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignCenter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignJustify",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignLeft",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignRight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"backColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"bold",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"cleanFormatting",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"createLink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontFamily",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"foreColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"indent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertFile",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertImage",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertOrderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertUnorderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"italic",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"outdent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"redo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"strikethrough",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"subscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"superscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"underline",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"undo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"unlink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"viewSource",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteColumn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogApply",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogCancel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogInsert",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogUpdate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageAltText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkOpenInNewWindow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkWebAddress",void 0),a);function a(){return null!==n&&n.apply(this,arguments)||this}e.Messages=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(16),o=(i.prototype.ngOnInit=function(){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})},i.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},i.prototype.clickHandler=function(){},i.prototype.pointerdownHandler=function(t){},i.prototype.onStateChange=function(t){},i);function i(t,e,o,n){this.command=t,this.button=e,this.editor=o,this.localization=n}e.EditorCommandBase=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(18),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.fontSizeDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontSizeDropDownList",{read:o.FontSizeDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontSizeDropDownListComponent)],s.prototype,"fontSizeDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FontSizeDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),o=o(3),l=(n=a.DialogContentBase,i.__extends(d,n),d.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},d.prototype.onCellClick=function(t){this.dialog.close(),this.editor.exec("insertTable",t),this.editor.view.focus()},d.prototype.setData=function(t){this.editor=t.editor},d.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",o.EditorComponent)],d.prototype,"editor",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],d));function d(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o}e.InsertTableDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(19),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.fontFamilyDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontFamilyDropDownList",{read:o.FontFamilyDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontFamilyDropDownListComponent)],s.prototype,"fontFamilyDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FontFamilyDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(12),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.colorPicker.focus()})},s.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.value=t.color},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.value=t.value,this.editorCommand=t.editorCommand,this.paletteSettings=t.paletteSettings,this.icon=t.icon,this.view=t.view},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("colorpicker",{read:o.ColorPickerComponent,static:!0}),i.__metadata("design:type",o.ColorPickerComponent)],s.prototype,"colorPicker",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o}e.ColorPickerDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(20),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.formatDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("formatDropDownList",{read:o.FormatDropDownListComponent,static:!0}),i.__metadata("design:type",o.FormatDropDownListComponent)],s.prototype,"formatDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FormatDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(15),l=o(6),d=o(7),s=o(8),o=o(2),o=(n=l.DialogContentBase,i.__extends(c,n),c.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.hrefInput.nativeElement.focus()})},c.prototype.onCancelAction=function(){this.dialog.close()},c.prototype.onConfirmAction=function(){var t=this.getData();this.editor.exec(this.command,t),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(c.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),c.prototype.setData=function(t,e){"createLink"===this.command&&this.linkForm.addControl("target",new a.FormControl);var o=d.getMark(t,t.schema.marks.link);o?this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:s.isPresent(o.attrs.target),text:this.setLinkText(t)}):t.selection.empty?(e=e.applyToWord?d.expandSelection(t,function(){},e).state:t).selection.empty||this.linkForm.patchValue({text:d.getSelectionText(e)}):this.linkForm.patchValue({text:d.getSelectionText(t)})},c.prototype.textForWithPrefix=function(t){var e="createLink"===this.command?"link":"file";return this.textFor(e+t)},c.prototype.textFor=function(t){return this.localization.get(t)},c.prototype.setLinkText=function(t){var e=t.selection;if(e.empty&&e.$cursor){var o=e.$cursor,e=o.index();return o.parent.child(e).text}return d.getSelectionText(t)},c.prototype.getData=function(){var t=this.linkForm.value;return s.isPresent(this.linkForm.controls.target)&&(t.target=t.target?"_blank":null),t},i.__decorate([r.Input(),i.__metadata("design:type",Object)],c.prototype,"editor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],c.prototype,"command",void 0),i.__decorate([r.ViewChild("hrefInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],c.prototype,"hrefInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="textInput.focus()">{{ textForWithPrefix(\'Text\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #textInput formControlName="text" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="titleInput.focus()">{{ textForWithPrefix(\'Title\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #titleInput formControlName="title" type="text" class="k-textbox" />\n </div>\n <ng-container *ngIf="command === \'createLink\'">\n <div class="k-edit-label"></div>\n <div class="k-edit-field">\n <input type="checkbox" id="k-target-blank" class="k-checkbox" formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,o.EditorLocalizationService])],c));function c(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.linkForm=new a.FormGroup({href:new a.FormControl("",a.Validators.required),text:new a.FormControl({value:"",disabled:!0},a.Validators.required),title:new a.FormControl("")}),o}e.FileLinkDialogComponent=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(15),l=o(6),d=o(7),s=o(8),c=o(2),p=o(14),c=(n=l.DialogContentBase,i.__extends(u,n),u.prototype.ngOnInit=function(){this.srcInputId="k-"+p.guid(),this.altTextInputId="k-"+p.guid(),this.widthInputId="k-"+p.guid(),this.heightInputId="k-"+p.guid()},u.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.srcInput.nativeElement.focus()})},u.prototype.onCancelAction=function(){this.dialog.close()},u.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},u.prototype.setData=function(t){t=d.getNodeFromSelection(t);t&&(this.src.patchValue(t.attrs.src),this.alt.patchValue(t.attrs.alt),this.width.patchValue(t.attrs.width),this.height.patchValue(t.attrs.height))},u.prototype.textFor=function(t){return this.localization.get(t)},u.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},u.prototype.normalizeDimension=function(t){return Number.isNaN(parseInt(t,10))||parseInt(t,10)<=0?"":s.safeString(parseInt(t,10))},i.__decorate([r.Input(),i.__metadata("design:type",Object)],u.prototype,"editor",void 0),i.__decorate([r.ViewChild("srcInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],u.prototype,"srcInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="altTextInputId">{{ textFor(\'imageAltText\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="widthInputId">{{ textFor(\'imageWidth\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="heightInputId">{{ textFor(\'imageHeight\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,c.EditorLocalizationService])],u));function u(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.src=new a.FormControl("",a.Validators.required),o.alt=new a.FormControl(""),o.width=new a.FormControl("",a.Validators.min(1)),o.height=new a.FormControl("",a.Validators.min(1)),o.data={alt:"",height:"",src:"",width:""},o.imageData=new a.FormGroup({alt:o.alt,height:o.height,src:o.src,width:o.width}),o}e.ImageDialogComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),o=o(2),o=(n=a.DialogContentBase,i.__extends(l,n),l.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.textarea.nativeElement.focus()})},l.prototype.onCancelAction=function(){this.dialog.close()},l.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},l.prototype.getData=function(){return this.textarea.nativeElement.value},l.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},l.prototype.textFor=function(t){return this.localization.get(t)},l.prototype.indent=function(t){return t.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},i.__decorate([r.Input(),i.__metadata("design:type",Object)],l.prototype,"editor",void 0),i.__decorate([r.ViewChild("textarea",{static:!0}),i.__metadata("design:type",r.ElementRef)],l.prototype,"textarea",void 0),i.__decorate([r.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,o.EditorLocalizationService])],l));function l(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data="",o}e.SourceDialogComponent=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d,n=o(0),h=o(7),g=o(21),_=o(34),i=(d=h.Selection,n.__extends(l,d),l.colSelection=function(t,e){void 0===e&&(e=t);var o=g.TableMap.get(t.node(-1)),n=t.start(-1),i=o.findCell(t.pos-n),r=o.findCell(e.pos-n),a=t.node(0);return i.top<=r.top?(0<i.top&&(t=a.resolve(n+o.map[i.left])),r.bottom<o.height&&(e=a.resolve(n+o.map[o.width*(o.height-1)+r.right-1]))):(0<r.top&&(e=a.resolve(n+o.map[r.left])),i.bottom<o.height&&(t=a.resolve(n+o.map[o.width*(o.height-1)+i.right-1]))),new l(t,e)},l.rowSelection=function(t,e){void 0===e&&(e=t);var o=g.TableMap.get(t.node(-1)),n=t.start(-1),i=o.findCell(t.pos-n),r=o.findCell(e.pos-n),a=t.node(0);return i.left<=r.left?(0<i.left&&(t=a.resolve(n+o.map[i.top*o.width])),r.right<o.width&&(e=a.resolve(n+o.map[o.width*(r.top+1)-1]))):(0<r.left&&(e=a.resolve(n+o.map[r.top*o.width])),i.right<o.width&&(t=a.resolve(n+o.map[o.width*(i.top+1)-1]))),new l(t,e)},l.fromJSON=function(t,e){return new l(t.resolve(e.anchor),t.resolve(e.head))},l.create=function(t,e,o){return void 0===o&&(o=e),new l(t.resolve(e),t.resolve(o))},l.prototype.map=function(t,e){var o=t.resolve(e.map(this.$anchorCell.pos)),t=t.resolve(e.map(this.$headCell.pos));if(_.pointsAtCell(o)&&_.pointsAtCell(t)&&_.inSameTable(o,t)){e=this.$anchorCell.node(-1)!==o.node(-1);return e&&this.isRowSelection()?l.rowSelection(o,t):e&&this.isColSelection()?l.colSelection(o,t):new l(o,t)}return h.TextSelection.between(o,t)},l.prototype.content=function(){for(var t=this.$anchorCell.node(-1),e=g.TableMap.get(t),o=this.$anchorCell.start(-1),n=e.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o),i={},r=[],a=n.top;a<n.bottom;a++){for(var l=[],d=a*e.width+n.left,s=n.left;s<n.right;s++,d++){var c,p,u,m,f=e.map[d];i[f]||(i[f]=!0,c=e.findCell(f),p=t.nodeAt(f),u=n.left-c.left,f=c.right-n.right,(0<u||0<f)&&(m=p.attrs,0<u&&(m=_.removeColSpan(m,0,u)),0<f&&(m=_.removeColSpan(m,m.colspan-f,f)),p=c.left<n.left?p.type.createAndFill(m):p.type.create(m,p.content)),(c.top<n.top||c.bottom>n.bottom)&&(m=_.setAttr(p.attrs,"rowspan",Math.min(c.bottom,n.bottom)-Math.max(c.top,n.top)),p=c.top<n.top?p.type.createAndFill(m):p.type.create(m,p.content)),l.push(p))}r.push(t.child(a).copy(h.Fragment.from(l)))}o=this.isColSelection()&&this.isRowSelection()?t:r;return new h.Slice(h.Fragment.from(o),1,1)},l.prototype.replace=function(t,e){void 0===e&&(e=h.Slice.empty);for(var o=t.steps.length,n=this.ranges,i=0;i<n.length;i++){var r=n[i],a=r.$from,l=r.$to,r=t.mapping.slice(o);t.replace(r.map(a.pos),r.map(l.pos),i?h.Slice.empty:e)}var d=h.Selection.findFrom(t.doc.resolve(t.mapping.slice(o).map(this.to)),-1);d&&t.setSelection(d)},l.prototype.replaceWith=function(t,e){this.replace(t,new h.Slice(h.Fragment.from(e),0,0))},l.prototype.forEachCell=function(t){for(var e=this.$anchorCell.node(-1),o=g.TableMap.get(e),n=this.$anchorCell.start(-1),i=o.cellsInRect(o.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n)),r=0;r<i.length;r++)t(e.nodeAt(i[r]),n+i[r])},l.prototype.isColSelection=function(){var t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(0<Math.min(t,e))return!1;t+=this.$anchorCell.nodeAfter.attrs.rowspan,e+=this.$headCell.nodeAfter.attrs.rowspan;return Math.max(t,e)===this.$headCell.node(-1).childCount},l.prototype.isRowSelection=function(){var t=g.TableMap.get(this.$anchorCell.node(-1)),e=this.$anchorCell.start(-1),o=t.colCount(this.$anchorCell.pos-e),e=t.colCount(this.$headCell.pos-e);if(0<Math.min(o,e))return!1;o+=this.$anchorCell.nodeAfter.attrs.colspan,e+=this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,e)===t.width},l.prototype.eq=function(t){return t instanceof l&&t.$anchorCell.pos===this.$anchorCell.pos&&t.$headCell.pos===this.$headCell.pos},l.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},l.prototype.getBookmark=function(){return new r(this.$anchorCell.pos,this.$headCell.pos)},l);function l(t,e){void 0===e&&(e=t);var o=this,n=t.node(-1),i=g.TableMap.get(n),r=t.start(-1),a=i.rectBetween(t.pos-r,e.pos-r),l=t.node(0),a=i.cellsInRect(a).filter(function(t){return t!==e.pos-r});a.unshift(e.pos-r);a=a.map(function(t){var e=n.nodeAt(t),t=t+r+1;return new h.SelectionRange(l.resolve(t),l.resolve(t+e.content.size))});return(o=d.call(this,a[0].$from,a[0].$to,a)||this).$anchorCell=t,o.$headCell=e,o}(e.CellSelection=i).prototype.visible=!1,h.Selection.jsonID("table_cell",i);var r=(a.prototype.map=function(t){return new a(t.map(this.anchor),t.map(this.head))},a.prototype.resolve=function(t){var e=t.resolve(this.anchor),t=t.resolve(this.head);return"row"===e.parent.type.spec.tableRole&&"row"===t.parent.type.spec.tableRole&&e.index()<e.parent.childCount&&t.index()<t.parent.childCount&&_.inSameTable(e,t)?new i(e,t):h.Selection.near(t,1)},a);function a(t,e){this.anchor=t,this.head=e}},function(t,g,e){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=e(7),a=e(10),l=e(21),_=e(33);g.findParentNodeClosestToPos=function(t,e){for(var o=t.depth;0<o;o--){var n=t.node(o);if(e(n))return{start:t.start(o),pos:0<o?t.before(o):0,depth:o,node:n}}},g.createTable=function(t,e,o){for(var n=t.table,i=t.table_body,r=t.table_row,a=t.table_cell,l=[],d=0;d<e+1;d++){for(var s=[],c=0;c<o+1;c++)s.push(a.createAndFill());l.push(r.createAndFill(void 0,s))}i=i.createAndFill(void 0,l);return n.createAndFill(void 0,i)},g.isInTable=function(t){for(var e=t.selection.$head,o=e.depth;0<o;o--)if(a.isTableRow(e.node(o)))return!0;return!1},g.setAttr=function(t,e,o){var n,i={};for(n in t)i[n]=t[n];return i[e]=o,i};function b(t){for(var e=t.depth-1;0<e;e--)if(a.isTableRow(t.node(e)))return t.node(0).resolve(t.before(e+1));return null}g.selectedRect=function(t){var e,o=(e=t)instanceof _.CellSelection&&e.$anchorCell?e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell:e instanceof r.NodeSelection&&e.node&&a.isTableCell(e.node)?e.$anchor:b(e.$head)||function(t){for(var e=t.nodeAfter,o=t.pos;e;e=e.firstChild,o++)if("cell"===(n=e.type.spec.tableRole)||"header_cell"===n)return t.doc.resolve(o);for(var n,i=t.nodeBefore,o=t.pos;i;i=i.lastChild,o--)if("cell"===(n=i.type.spec.tableRole)||"header_cell"===n)return t.doc.resolve(o-i.nodeSize)}(e.$head),n=o.node(-1),i=o.start(-1),e=l.TableMap.get(n),o=t instanceof _.CellSelection?e.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):e.findCell(o.pos-i);return o.tableStart=i,o.map=e,o.table=n,o},g.tableNodeTypes=function(t){var e=t.cached.tableNodeTypes;if(!e)for(var o in e=t.cached.tableNodeTypes={},t.nodes){var n=t.nodes[o],o=n.spec.tableRole;o&&(e[o]=n)}return e},g.rowIsHeader=function(t,e,o){for(var n=g.tableNodeTypes(e.type.schema).header_cell,i=0;i<t.width;i++)if(e.nodeAt(t.map[i+o*t.width]).type!==n)return!1;return!0},g.addColSpan=function(t,e,o){var n=g.setAttr(t,"colspan",t.colspan+(o=void 0===o?1:o));if(n.colwidth){n.colwidth=n.colwidth.slice();for(var i=0;i<o;i++)n.colwidth.splice(e,0,0)}return n},g.removeColSpan=function(t,e,o){t=g.setAttr(t,"colspan",t.colspan-(o=void 0===o?1:o));return t.colwidth&&(t.colwidth=t.colwidth.slice(),t.colwidth.splice(e,o),t.colwidth.some(function(t){return 0<t})||(t.colwidth=null)),t},g.isCellEmpty=function(t){t=t.content;return 1===t.childCount&&t.firstChild.isTextblock&&0===t.firstChild.childCount},g.splitCellWithType=function(h){return function(t,e){var o,n,i=t.selection;if(i instanceof _.CellSelection){if(i.$anchorCell.pos!==i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,n=i.$anchorCell.pos}else{if(!(o=function(t){for(var e=t.depth;0<e;e--){var o=t.node(e).type.spec.tableRole;if("cell"===o||"header_cell"===o)return t.node(e)}return null}(i.$from)))return!1;n=b(i.$from).pos}if(1===o.attrs.colspan&&1===o.attrs.rowspan)return!1;if(e){var r=o.attrs,a=[],l=r.colwidth;1<(r=1<r.rowspan?g.setAttr(r,"rowspan",1):r).colspan&&(r=g.setAttr(r,"colspan",1));for(var d=g.selectedRect(t),s=t.tr,c=0;c<d.right-d.left;c++)a.push(l?g.setAttr(r,"colwidth",l&&l[c]?[l[c]]:null):r);for(var p=void 0,u=d.top;u<d.bottom;u++){var m=d.map.positionAt(u,d.left,d.table);u===d.top&&(m+=o.nodeSize);for(var f=d.left,c=0;f<d.right;f++,c++)f===d.left&&u===d.top||s.insert(p=s.mapping.map(m+d.tableStart,1),h({node:o,row:u,col:f}).createAndFill(a[c]))}s.setNodeMarkup(n,h({node:o,row:d.top,col:d.left}),a[0]),i instanceof _.CellSelection&&s.setSelection(new _.CellSelection(s.doc.resolve(i.$anchorCell.pos),p&&s.doc.resolve(p))),e(s)}return!0}},g.pointsAtCell=function(t){return a.isTableRow(t.parent)&&t.nodeAfter},g.inSameTable=function(t,e){return t.depth===e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)},g.cellsOverlapRectangle=function(t,e){for(var o=t.width,n=t.height,i=t.map,r=e.top*o+e.left,a=r,l=(e.bottom-1)*o+e.left,d=r+(e.right-e.left-1),s=e.top;s<e.bottom;s++){if(0<e.left&&i[a]===i[a-1]||e.right<o&&i[d]===i[d+1])return!0;a+=o,d+=o}for(s=e.left;s<e.right;s++){if(0<e.top&&i[r]===i[r-o]||e.bottom<n&&i[l]===i[l+o])return!0;r++,l++}return!1}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(88),r=o(7);e.Schema=r.Schema;var a=o(87),o=r.marks,i=Object.assign(r.nodes,a.tableNodes,i.semanticNodes);e.schema=new r.Schema({marks:o,nodes:n.__assign({},i,{blockquote:n.__assign({},i.blockquote,{content:"inline*"})})})},function(t,e){t.exports=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),o=o(1),o=(i.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.hostEl.nativeElement.addEventListener("pointerdown",t.preventDefault)})},i.prototype.ngOnDestroy=function(){this.hostEl.nativeElement.removeEventListener("pointerdown",this.preventDefault)},n.__decorate([o.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],i));function i(t,e){this.hostEl=t,this.zone=e,this.preventDefault=function(t){t.preventDefault()}}e.DropDownToolDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(9),o=o(23),l=(n=o.Messages,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-editor-messages",template:""}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(t){var e=n.call(this)||this;return e.service=t,e}e.CustomMessagesComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(9),o=o(23),l=(n=o.Messages,r.__extends(d,n),i=d,i=r.__decorate([a.Directive({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoEditorLocalizedMessages]"}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(t){var e=n.call(this)||this;return e.service=t,e}e.LocalizedMessagesDirective=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"splitCell",t,e,o)||this}e.EditorSplitCellButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"mergeCells",t,e,o)||this}e.EditorMergeCellsButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteTable",t,e,o)||this}e.EditorDeleteTableButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteRow",t,e,o)||this}e.EditorDeleteRowButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteColumn",t,e,o)||this}e.EditorDeleteColumnButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addRowAfter",t,e,o)||this}e.EditorAddRowAfterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addRowBefore",t,e,o)||this}e.EditorAddRowBeforeButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addColumnAfter",t,e,o)||this}e.EditorAddColumnAfterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addColumnBefore",t,e,o)||this}e.EditorAddColumnBeforeButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"cleanFormatting",t,e,o)||this}e.EditorCleanFormattingButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(17),a=o(16),r=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(t){this.colorPicker=t,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}e.EditorBackColorDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(17),a=o(16),r=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(t){this.colorPicker=t,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}e.EditorForeColorDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(3),l=o(11),d=o(4),o=o(2),o=(n=l.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[d.ToolBarButtonComponent,a.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertFile",t,e,o)||this}e.EditorInsertFileButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"superscript",t,e,o)||this}e.EditorSuperscriptButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"subscript",t,e,o)||this}e.EditorSubscriptButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"strikethrough",t,e,o)||this}e.EditorStrikethroughButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"underline",t,e,o)||this}e.EditorUnderlineButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"italic",t,e,o)||this}e.EditorItalicButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"bold",t,e,o)||this}e.EditorBoldButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"viewSource",t,e,o)||this}e.EditorViewSourceButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertUnorderedList",t,e,o)||this}e.EditorInsertUnorderedListButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertOrderedList",t,e,o)||this}e.EditorInsertOrderedListButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"unlink",t,e,o)||this}e.EditorUnlinkButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"createLink",t,e,o)||this}e.EditorCreateLinkButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"outdent",t,e,o)||this}e.EditorOutdentButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"indent",t,e,o)||this}e.EditorIndentButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertImage",t,e,o)||this}e.EditorInsertImageButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"undo",t,e,o)||this}e.EditorUndoButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"redo",t,e,o)||this}e.EditorRedoButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignJustify",t,e,o)||this}e.EditorAlignJustifyButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignRight",t,e,o)||this}e.EditorAlignRightButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignCenter",t,e,o)||this}e.EditorAlignCenterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignLeft",t,e,o)||this}e.EditorAlignLeftButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),n=(Object.defineProperty(r.prototype,"message",{get:function(){var t=this.state,e=t.rows,t=t.cols;return"Create a "+(-1<e?e+1:"")+" "+(-1<t?"x":"")+" "+(-1<t?t+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),r.prototype.selected=function(t){var e=this.state,o=e.rows,n=e.cols,e=Math.floor(t/this.cols),t=t%this.cols;return e<=o&&t<=n},r.prototype.setState=function(t){var e=Math.floor(t/this.cols),t=t%this.cols;this.state={rows:e,cols:t}},r.prototype.resetState=function(){this.state={rows:-1,cols:-1}},r.prototype.insertTable=function(){this.cellClick.emit(this.state)},r.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"tableWizardClick",void 0),n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],r));function r(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}e.PopupTableGridComponent=n},function(t,e){t.exports=C},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(36),d=o(22),s=o(4),c=o(74),p=o(8),u=o(3),m=o(2),f=o(6),h=o(26),g=o(14),f=(r=s.ToolBarToolComponent,i.__extends(_,r),(n=_).prototype.ngAfterViewInit=function(){this.getButton().tabIndex=-1},_.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(_.prototype,"outerWidth",{get:function(){if(this.element)return p.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),_.prototype.toggle=function(t){this.open=void 0===t?!this.open:t,this.destroyPopup(),this.open&&this.createPopup()},_.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:h.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor})},_.prototype.onBlur=function(){this.getButton().tabIndex=-1,this.buttonBlurred.emit()},_.prototype.onCellClick=function(t){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",t)},_.prototype.canFocus=function(){return!this.disabled},_.prototype.focus=function(){this.getButton().focus(),this.getButton().tabIndex=0},_.prototype.handleKey=function(t){return t.keyCode===g.Keys.Space||t.keyCode===g.Keys.Enter||!(this.getButton().tabIndex=-1)},_.prototype.onTableWizardClick=function(){},_.prototype.createPopup=function(){var t="rtl"===this.editor.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:{horizontal:t,vertical:"bottom"},animate:!0,content:this.popupGridTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});t=this.popupRef.popupElement;t.style.width="190px",t.style.height="164px",t.setAttribute("dir",this.editor.direction)},_.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},_.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"element",void 0),i.__decorate([a.ViewChild("overflowElement",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"overflowElement",void 0),i.__decorate([a.ViewChild("popupGridTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupGridTemplate",void 0),n=i.__decorate([a.Component({providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [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 '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[u.EditorComponent,m.EditorLocalizationService,c.PopupService,f.DialogService])],_));function _(t,e,o,n){var i=r.call(this)||this;return i.editor=t,i.localization=e,i.popupService=o,i.dialogService=n,i.open=!1,i.buttonBlurred=new a.EventEmitter,i.cellClicked=new a.EventEmitter,i.subs=i.editor.stateChange.subscribe(function(t){t=t.insertTable;i.disabled=t.disabled}),i.subs.add(i.buttonBlurred.pipe(d.concatMap(function(){return l.interval(200).pipe(d.take(1),d.takeUntil(i.cellClicked))})).subscribe(function(){i.toggle(!1)})),i}e.EditorInsertTableButtonComponent=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(8),s=o(3),c=o(2),p=o(6),u=o(27),o=o(19),c=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontFamilyDropDownList||e.fontFamilyDropDownList.dropDownList.isOpen)||null===t.dataItem.fontName},setTimeout(function(){return e.defaultItem={text:e.title,fontName:null}}),this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.value=d.getUniqueStyleValues(t.selected,"font-family")||null,e.disabled=t.disabled})},m.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("fontFamily",e),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.fontName===e})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontFamilyButton.nativeElement:this.fontFamilyDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("element",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"element",void 0),r.__decorate([a.ViewChild("element",{read:o.FontFamilyDropDownListComponent,static:!1}),r.__metadata("design:type",o.FontFamilyDropDownListComponent)],m.prototype,"fontFamilyDropDownList",void 0),r.__decorate([a.ViewChild("fontFamilyButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"fontFamilyButton",void 0),n=r.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],n}e.EditorFontFamilyComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(8),s=o(3),c=o(2),p=o(6),u=o(25),o=o(18),c=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontSizeDropDownList||e.fontSizeDropDownList.dropDownList.isOpen)||null===t.dataItem.size},setTimeout(function(){return e.defaultItem={text:e.title,size:null}}),this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.value=(d.getUniqueStyleValues(t.selected,"font-size").match(/\d+/g)||[null])[0],e.disabled=t.disabled})},m.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("fontSize",e),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.size===parseInt(e,10)})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontSizeButton.nativeElement:this.fontSizeDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("element",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"element",void 0),r.__decorate([a.ViewChild("element",{read:o.FontSizeDropDownListComponent,static:!1}),r.__metadata("design:type",o.FontSizeDropDownListComponent)],m.prototype,"fontSizeDropDownList",void 0),r.__decorate([a.ViewChild("fontSizeButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"fontSizeButton",void 0),n=r.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._data=[{text:"8px",size:8},{text:"10px",size:10},{text:"12px",size:12},{text:"14px",size:14},{text:"18px",size:18},{text:"24px",size:24},{text:"36px",size:36}],n}e.EditorFontSizeComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(6),s=o(8),c=o(3),p=o(2),u=o(29),o=o(20),p=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var o=this;this.itemDisabled=function(t){return!(o.overflows||!o.formatDropDownList||o.formatDropDownList.dropDownList.isOpen)||null===t.dataItem.tag},setTimeout(function(){return o.defaultItem={text:o.title,tag:null}}),this.subs=this.editor.stateChange.subscribe(function(t){var e=t.format,t=o.data.findIndex(function(t){return t.tag===e.selected.tag});o.value=-1!==t?e.selected.tag:null,o.disabled=e.disabled})},m.prototype.onValueChange=function(e){s.isPresent(e)&&(this.editor.exec("format",{tag:e}),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.tag===e})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){var t=this.formatDropDownList.element;if(t)return s.outerWidth(t.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.formatButton.nativeElement:this.formatDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("formatDropDownList",{static:!1}),r.__metadata("design:type",o.FormatDropDownListComponent)],m.prototype,"formatDropDownList",void 0),r.__decorate([a.ViewChild("formatButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"formatButton",void 0),n=r.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[c.EditorComponent,d.DialogService,p.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._data=[{text:"Paragraph",tag:"p"},{text:"Quotation",tag:"blockquote"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],n}e.EditorFormatComponent=p},function(t,e){t.exports=f},function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(80),a=o(15),l=o(4),d=o(13),s=o(6),c=o(79),p=o(12),u=o(12),m=o(3),f=o(31),h=o(32),g=o(30),_=o(29),b=o(28),v=o(27),y=o(26),C=o(78),k=o(77),w=o(76),E=o(17),x=o(75),T=o(73),D=o(72),S=o(71),B=o(70),I=o(69),A=o(68),O=o(67),M=o(66),L=o(65),z=o(64),P=o(63),F=o(62),R=o(61),j=o(60),W=o(59),H=o(58),N=o(57),V=o(56),$=o(55),U=o(54),J=o(53),K=o(52),G=o(51),q=o(50),Z=o(49),X=o(48),Q=o(47),Y=o(46),tt=o(45),et=o(44),ot=o(43),nt=o(42),it=o(41),rt=o(40),at=o(39),lt=o(38),dt=o(20),st=o(19),ct=o(18),pt=o(25),o=o(37),o=[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,J.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,q.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,tt.EditorAddRowAfterButtonDirective,et.EditorDeleteColumnButtonDirective,ot.EditorDeleteRowButtonDirective,nt.EditorDeleteTableButtonDirective,it.EditorMergeCellsButtonDirective,rt.EditorSplitCellButtonDirective,lt.CustomMessagesComponent,at.LocalizedMessagesDirective,o.DropDownToolDirective],x=[k.EditorFontSizeComponent,w.EditorFontFamilyComponent,C.EditorFormatComponent,E.EditorColorPickerComponent,x.EditorInsertTableButtonComponent],y=[g.FileLinkDialogComponent,f.ImageDialogComponent,h.SourceDialogComponent,_.FormatDialogComponent,b.ColorPickerDialogComponent,v.FontFamilyDialogComponent,pt.FontSizeDialogComponent,y.InsertTableDialogComponent],ct=[T.PopupTableGridComponent,dt.FormatDropDownListComponent,st.FontFamilyDropDownListComponent,ct.FontSizeDropDownListComponent],u=n.__decorate([i.NgModule({declarations:[m.EditorComponent,o,x,y,ct],entryComponents:[y],exports:[m.EditorComponent,o,x,l.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,ct],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,p.ColorPickerModule,s.DialogModule,d.DropDownsModule,u.NumericTextBoxModule,l.ToolBarModule,u.TextBoxModule]})],ut);function ut(){}e.EditorModule=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(t){return"plugins must be a function, but received "+JSON.stringify(t)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n padding: 8px;\n}\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\ndiv.ProseMirror {\n position: relative;\n min-height: 100%;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\ndiv.ProseMirror:focus {\n outline: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror li {\n position: relative;\n}\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n',e.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px;\n top: 0;\n bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',e.rtlStyles="body { direction: rtl }"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(7),i=o(7);e.getToolbarState=function(e,o){return{alignCenter:{selected:i.isAligned(e,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(e,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(e,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(e,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(e,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(e)},format:{selected:i.activeNode(e),disabled:!1},indent:{selected:!1,disabled:!(i.canIndentAsListItem(e,e.schema.nodes.list_item)||i.canBeIndented(e,i.indentRules))},insertOrderedList:{selected:i.hasNode(e,e.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(e,e.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(e,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(e,i.link)},outdent:{selected:!1,disabled:!(i.canOutdentAsListItem(e,i.outdentRules)||i.canBeIndented(e,i.outdentRules))},redo:{selected:!1,disabled:!i.redo(e)},strikethrough:{selected:i.hasMark(e,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(e,e.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(e,i.subscript),disabled:!1},superscript:{selected:i.hasMark(e,i.superscript),disabled:!1},underline:{selected:i.hasMark(e,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(e)},createLink:{selected:!1,get disabled(){var t=e.selection.empty;return o&&o.applyToWord&&t?i.expandSelection(e,function(){},o).state.selection.empty:t}},insertFile:{selected:!1,disabled:e.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!i.addColumnBefore(e)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(e)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(e)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(e)},deleteRow:{selected:!1,disabled:!i.deleteRow(e)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(e)},mergeCells:{selected:!1,disabled:!i.mergeCells(e)},splitCell:{selected:!1,disabled:!i.splitCell(e)},deleteTable:{selected:!1,disabled:!i.deleteTable(e)}}},e.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},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}},e.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},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(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var f=e(7),h=e(34),g=e(10),c=e(21),_=e(33);r.insertTable=function(n){return function(t,e){var o=h.createTable(t.schema.nodes,n.rows,n.cols);o&&f.insertNode(o,!0)(t,e)}};function a(t,e,o,i,r,a){var l,d=e.left,s=e.right,n=0<o?-1:0;if(i.node.descendants(function(t,o){var n;r(t)&&(n=-1,t.firstChild.descendants(function(t,e){!g.isTableCell(t)&&!g.isTableHeaderCell(t)||(n+=1)!==s&&n!==d||(e=new f.Selection(a.resolve(e+o+i.start),a.resolve(e+o+i.start)),l=h.selectedRect(e))}))}),!l)return t;for(var c=0;c<l.map.height;c++){var p,u,m=c*l.map.width+o;0<o&&o<l.map.width&&l.map.map[m-1]===l.map.map[m]?(u=l.map.map[m],p=l.table.nodeAt(u),t.setNodeMarkup(t.mapping.map(l.tableStart+u),null,h.addColSpan(p.attrs,o-l.map.colCount(u))),c+=p.attrs.rowspan-1):(m=l.table.nodeAt(l.map.map[m+n]).type,u=l.map.positionAt(c,o,l.table),t.insert(t.mapping.map(l.tableStart+u),m.createAndFill()))}return t}function i(t,e,i,r,a){var l,d=e.right,s=e.left;if(i.node.descendants(function(t,o){var n;r(t)&&(n=-1,t.firstChild.descendants(function(t,e){(g.isTableCell(t)||g.isTableHeaderCell(t))&&(n+=1)>=s&&n<d&&(t=a.resolve(e+o+i.start+t.nodeSize),t=new f.Selection(t,t),l=h.selectedRect(t))}))}),l)for(var o=l.right-1;function(t,e,o){for(var n=e.map,i=e.table,r=e.tableStart,a=0;a<n.height;){var l=a*n.width+o,d=n.map[l],s=i.nodeAt(d);if(o>0&&n.map[l-1]===d||o<n.width-1&&n.map[l+1]===d)t.setNodeMarkup(t.mapping.map(r+d),null,h.removeColSpan(s.attrs,o-n.colCount(d)));else{var c=t.mapping.map(r+d);t.delete(c,c+s.nodeSize)}a+=s.attrs.rowspan}}(t,l,o),o!==l.left;o--)l.table=l.tableStart?t.doc.nodeAt(l.tableStart-1):t.doc,l.map=c.TableMap.get(l.table)}r.addColumnBefore=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),i=a(t.tr,o,o.left,n,g.isTableHead,t.doc),i=a(i,o,o.left,n,g.isTableBody,t.doc),e(a(i,o,o.left,n,g.isTableFoot,t.doc))),!0);var o,n,i},r.addColumnAfter=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),i=a(t.tr,o,o.right,n,g.isTableHead,t.doc),i=a(i,o,o.right,n,g.isTableBody,t.doc),e(a(i,o,o.right,n,g.isTableFoot,t.doc))),!0);var o,n,i};function n(t,e,o){for(var n=e.map,i=e.tableStart,r=e.table,a=i,l=0;l<o;l++)a+=r.child(l).nodeSize;var d=[],s=0<o?-1:0;h.rowIsHeader(n,r,o+s)&&(s=0===o||o===n.height?null:0);for(var c,p,u=0,m=n.width*o;u<n.width;u++,m++)0<o&&o<n.height&&n.map[m]===n.map[m-n.width]?(c=n.map[m],p=r.nodeAt(c).attrs,t.setNodeMarkup(i+c,null,h.setAttr(p,"rowspan",p.rowspan+1)),u+=p.colspan-1):(p=null==s?h.tableNodeTypes(r.type.schema).cell:r.nodeAt(n.map[m+s*n.width]).type,d.push(p.createAndFill()));return t.insert(a,h.tableNodeTypes(r.type.schema).row.create(null,d)),t}r.addRowBefore=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),e(n(t.tr,o,o.top))),!0);var o},r.addRowAfter=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),e(n(t.tr,o,o.bottom))),!0);var o},r.deleteColumn=function(t,e){if(!h.isInTable(t))return!1;if(e){var o=h.selectedRect(t.selection);if(0===o.left&&o.right===o.map.width)return r.deleteTable(t,e);var n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),t=t.tr;i(t,o,n,g.isTableFoot,t.doc),i(t,o,n,g.isTableBody,t.doc),i(t,o,n,g.isTableHead,t.doc),e(t)}return!0};r.deleteRow=function(t,e){if(!h.isInTable(t))return!1;if(e){var o=h.selectedRect(t.selection),n=t.tr;if(0===o.top&&o.bottom===o.map.height)return 1===h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable).node.childCount?r.deleteTable(t,e):l(function(t){return t.type.name===o.table.type.name})(t,e),!0;for(var i=o.bottom-1;function(t,e,o){for(var n=e.map,i=e.table,r=e.tableStart,a=0,l=0;l<o;l++)a+=i.child(l).nodeSize;var e=a+i.child(o).nodeSize,d=t.mapping.maps.length;t.delete(a+r,e+r);for(var s=0,c=o*n.width;s<n.width;s++,c++){var p,u,m=n.map[c];0<o&&m===n.map[c-n.width]?(u=i.nodeAt(m).attrs,t.setNodeMarkup(t.mapping.slice(d).map(m+r),null,h.setAttr(u,"rowspan",u.rowspan-1)),s+=u.colspan-1):o<n.width&&m===n.map[c+n.width]&&(u=(p=i.nodeAt(m)).type.create(h.setAttr(p.attrs,"rowspan",p.attrs.rowspan-1),p.content),m=n.positionAt(o+1,s,i),t.insert(t.mapping.slice(d).map(r+m),u),s+=p.attrs.colspan-1)}}(n,o,i),i!==o.top;i--)o.table=o.tableStart?n.doc.nodeAt(o.tableStart-1):n.doc,o.map=c.TableMap.get(o.table);e(n)}return!0},r.mergeCells=function(t,e){var o=t.selection;if(!(o instanceof _.CellSelection)||o.$anchorCell.pos===o.$headCell.pos)return!1;var n=h.selectedRect(t.selection),i=n.map;if(h.cellsOverlapRectangle(i,n))return!1;if(e){for(var r=t.tr,a={},l=f.Fragment.empty,d=void 0,s=void 0,c=n.top;c<n.bottom;c++)for(var p=n.left;p<n.right;p++){var u=i.map[c*i.width+p],m=n.table.nodeAt(u);a[u]||(a[u]=!0,null===d?(d=u,s=m):(h.isCellEmpty(m)||(l=l.append(m.content)),u=r.mapping.map(u+n.tableStart),r.delete(u,u+m.nodeSize)))}r.setNodeMarkup(d+n.tableStart,null,h.setAttr(h.addColSpan(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),"rowspan",n.bottom-n.top)),l.size&&(o=d+1+s.content.size,t=h.isCellEmpty(s)?d+1:o,r.replaceWith(t+n.tableStart,o+n.tableStart,l)),r.setSelection(new _.CellSelection(r.doc.resolve(d+n.tableStart))),e(r)}return!0},r.splitCell=function(t,e){var o=h.tableNodeTypes(t.schema);return h.splitCellWithType(function(t){t=t.node;return o[t.type.spec.tableRole]})(t,e)};var l=function(r){return function(t,e){for(var o=t.selection.$anchor,n=o.depth;0<n;n--){var i=o.node(n);if(r(i))return e&&((i=t.tr).delete(o.before(n),o.after(n)).scrollIntoView(),e(i)),!0}return!1}};r.deleteTable=l(g.isTable)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t,e){return r.alignBlocks(r.alignRemoveRules)(t,e)}var i=o(0),r=o(7),a=o(85);e.editorCommands=Object.assign({},{bold:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.bold,{applyToWord:t}))},cleanFormatting:function(t){return r.cleanFormatting(t)},createLink:function(t){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:t.value,applyToWord:t.applyToWord})},fontFamily:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-family",value:t.value,applyToWord:t.applyToWord})},fontSize:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-size",value:t.value+"px",applyToWord:t.applyToWord})},insertFile:function(t){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:t,applyToWord:t.applyToWord})},insertText:function(t){return r.insertText(t)},italic:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.italic,{applyToWord:t}))},strikethrough:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.strikethrough,{applyToWord:t}))},subscript:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.subscript,{applyToWord:t}))},superscript:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.superscript,{applyToWord:t}))},underline:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.underline,{applyToWord:t}))},unlink:function(){return r.removeLink(r.link)},foreColor:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"color",value:t.value,applyToWord:t.applyToWord})},backColor:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"background-color",value:t.value,applyToWord:t.applyToWord})}},{alignCenter:function(){return function(t,e){return(r.isAligned(t,r.alignCenterRules)?n:r.alignBlocks(r.alignCenterRules))(t,e)}},alignJustify:function(){return function(t,e){return(r.isAligned(t,r.alignJustifyRules)?n:r.alignBlocks(r.alignJustifyRules))(t,e)}},alignLeft:function(){return function(t,e){return(r.isAligned(t,r.alignLeftRules)?n:r.alignBlocks(r.alignLeftRules))(t,e)}},alignRight:function(){return function(t,e){return(r.isAligned(t,r.alignRightRules)?n:r.alignBlocks(r.alignRightRules))(t,e)}},format:function(t){return r.formatBlockElements(t.tag)},getHTML:function(){return r.getHtml},indent:function(){return r.indent},insertImage:function(t){return r.insertImage(t)},insertOrderedList:function(){return r.toggleOrderedList},insertUnorderedList:function(){return r.toggleUnorderedList},outdent:function(){return r.outdent},redo:function(){return r.redo},setHTML:function(t){var e=t.content,t=t.parseOptions;return r.setHtml(e,"setHTML",t)},undo:function(){return r.undo}},{insertTable:function(t){return a.insertTable(t)},addColumnBefore:function(){return a.addColumnBefore},addColumnAfter:function(){return a.addColumnAfter},addRowBefore:function(){return a.addRowBefore},addRowAfter:function(){return a.addRowAfter},deleteRow:function(){return a.deleteRow},deleteColumn:function(){return a.deleteColumn},mergeCells:function(){return a.mergeCells},splitCell:function(){return a.splitCell},deleteTable:function(){return a.deleteTable}})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){var e=i.__assign({},t);return 1!==t.colspan?e.colspan=t.colspan:e.colspan=null,1!==t.rowspan?e.rowspan=t.rowspan:e.rowspan=null,r.removeEmptyEntries(e)}var i=o(0),r=o(8),o=o(10);e.tableNodes={table:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["cellspacing","cellpadding"])),content:"(table_body | table_head | table_foot | table_colgroup)+",tableRole:"table",isolating:!0,group:"block",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"table"}],toDOM:function(t){return["table",r.removeEmptyEntries(t.attrs),0]}},table_row:{content:"(table_cell | table_header)*",attrs:i.__assign({},o.commonAttributes()),tableRole:"row",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tr"}],toDOM:function(t){return["tr",r.removeEmptyEntries(t.attrs),0]}},table_cell:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"td"}],toDOM:function(t){return["td",n(t.attrs),0]}},table_header:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers","abbr","scope"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"header_cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"th"}],toDOM:function(t){return["th",n(t.attrs),0]}},table_body:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tbody"}],toDOM:function(t){return["tbody",r.removeEmptyEntries(t.attrs),0]}},table_foot:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tfoot"}],toDOM:function(t){return["tfoot",r.removeEmptyEntries(t.attrs),0]}},table_head:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"thead"}],toDOM:function(t){return["thead",r.removeEmptyEntries(t.attrs),0]}},table_col:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),selectable:!1,atom:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"col"}],toDOM:function(t){return["col",r.removeEmptyEntries(t.attrs)]}},table_colgroup:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),content:"table_col*",selectable:!1,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"colgroup"}],toDOM:function(t){return["colgroup",r.removeEmptyEntries(t.attrs),0]}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(10);e.semanticTagNames=["article","main","nav","header","footer","aside","section"],e.semanticNodes=e.semanticTagNames.reduce(function(t,e){var o;return Object.assign(t,((t={})[e]=(o=e,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:o,getAttrs:i.getAttributes}],toDOM:function(t){return i.hasAttrs(t.attrs)?[o,i.getAttrs(t.attrs),i.hole]:[o,i.hole]}}),t))},{})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate: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(t,e){t.exports=v},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3);e.EditorComponent=n.EditorComponent;n=o(81);e.EditorModule=n.EditorModule;n=o(35);e.schema=n.schema,e.Schema=n.Schema;o=o(7);e.EditorState=o.EditorState,e.Plugin=o.Plugin,e.PluginKey=o.PluginKey,e.Transaction=o.Transaction,e.EditorView=o.EditorView,e.Decoration=o.Decoration,e.DecorationSet=o.DecorationSet,e.NodeType=o.NodeType,e.Node=o.Node,e.MarkType=o.MarkType,e.Mark=o.Mark,e.InputRule=o.InputRule,e.inputRules=o.inputRules,e.wrappingInputRule=o.wrappingInputRule,e.textblockTypeInputRule=o.textblockTypeInputRule,e.keymap=o.keymap,e.baseKeymap=o.baseKeymap,e.history=o.history,e.dropCursor=o.dropCursor,e.gapCursor=o.gapCursor,e.tableNodes=o.tableNodes,e.getSelectionText=o.getSelectionText,function(t){for(var e in t)r(e,t[e])}(e)}],i={},n.m=o,n.c=i,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=91)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-editor",["@progress/kendo-editor-common","@angular/core","@angular/common","tslib","@angular/forms","@progress/kendo-angular-toolbar","@progress/kendo-angular-dropdowns","@progress/kendo-angular-dialog","@progress/kendo-angular-buttons","@progress/kendo-angular-inputs","rxjs","rxjs/operators","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-popup"],function(r){var a,l,d,s,c,p,u,m,f,h,g,_,b,v,y,C;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){a=e(t)},function(t){l=e(t)},function(t){d=e(t)},function(t){s=e(t)},function(t){c=e(t)},function(t){p=e(t)},function(t){u=e(t)},function(t){m=e(t)},function(t){f=e(t)},function(t){h=e(t)},function(t){g=e(t)},function(t){_=e(t)},function(t){b=e(t)},function(t){v=e(t)},function(t){y=e(t)},function(t){C=e(t)}],execute:function(){function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,i;o=[function(t,e){t.exports=s},function(t,e){t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),o=o(9),o=(n=o.LocalizationService,i.__extends(a,n),i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],a));function a(t,e,o){return n.call(this,t,e,o)||this}e.EditorLocalizationService=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=o(0),a=o(1),i=o(15),c=o(37),p=o(22),r=o(4),l=o(6),u=o(14),m=o(7),d=o(92),f=o(91),h=o(36),g=o(88),_=o(86),b=o(8),v=o(33),y=o(32),C=o(31),k=o(9),w=o(2),E=o(85),x=o(30),T={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!1,removeMsClasses:!1,removeMsStyles:!1,stripTags:[""]},D=b.conditionallyExecute(m.removeComments),S=b.conditionallyExecute(m.sanitize),k=(n=B,Object.defineProperty(B.prototype,"value",{get:function(){var t=this._view?this.getSource():this._value;return"<p></p>"===t?this._value&&"":t},set:function(t){this._previousValue!==t&&(this._value=t,this._previousValue=t,this._view)&&(this.iframe&&!this.container.element.nativeElement.contentWindow||this.exec("setHTML",{content:this._value||"",parseOptions:{preserveWhitespace:this.preserveWhitespace}}))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(_.disabledToolBarState):this.stateChange.next(_.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"readonly",{get:function(){return this._readonly},set:function(t){var e;this._readonly=t||!1,this._view&&(e=void 0,t=(e=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode,this._view.dom.contains(t)&&e.getSelection().removeAllRanges(),e=this._view.state.doc,e=this._view.state.tr.setSelection(m.TextSelection.create(e,1)),this._view.dispatch(e)),this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(_.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(_.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"schema",{get:function(){return this._schema},set:function(t){if(a.isDevMode){if(!(t instanceof m.Schema))throw new Error(x.EditorErrorMessages.schemaType);if(this._view)throw new Error(x.EditorErrorMessages.setSchemaOnce)}this._schema=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"plugins",{get:function(){return this._plugins},set:function(t){if(a.isDevMode){if("function"!=typeof t)throw new Error(x.EditorErrorMessages.pluginsCallbackType(t));if(this._view)throw new Error(x.EditorErrorMessages.setPluginsOnce)}this._plugins=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){if(a.isDevMode&&this._view)throw new Error(x.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isIE",{get:function(){return this.iframe&&b.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minWidth",{get:function(){var t=this.resizable;return t.minWidth?t.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxWidth",{get:function(){var t=this.resizable;return t.maxWidth?t.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"minHeight",{get:function(){var t=this.resizable;return t.minHeight?t.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"maxHeight",{get:function(){var t=this.resizable;return t.maxHeight?t.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"selectionText",{get:function(){return this._view&&this._view.state?m.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe(function(t){t=t.rtl;e.direction=t?"rtl":"ltr"}))},B.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},B.prototype.ngOnChanges=function(t){var e=this;t.iframe&&!t.iframe.isFirstChange()&&this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return e.initialize()}),t.resizable&&!t.resizable.isFirstChange()&&this.normalizeSize()},B.prototype.setDisabledState=function(t){this.disabled=t},B.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},B.prototype.exec=function(e,t){"setHTML"===e&&"string"==typeof t?t={content:t,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some(function(t){return t===e})&&(t={value:t,applyToWord:this.applyToWord}),g.editorCommands[e](t)(this._view.state,this._view.dispatch,this._view)},B.prototype.openDialog=function(t){var e={createLink:{content:C.FileLinkDialogComponent},insertFile:{content:C.FileLinkDialogComponent},insertImage:{content:y.ImageDialogComponent},viewSource:{content:v.SourceDialogComponent,height:400,width:500}},e=Object.assign({appendTo:this.dialogContainer},e[t]);this.toolbar.toggle(!1);e=this.dialogService.open(e).content.instance;"createLink"!==t&&"insertFile"!==t||(e.command=t),e.editor=this,e.setData(this._view.state,{applyToWord:this.applyToWord})},B.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},B.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},B.prototype.getSource=function(){return m.getHtml(this._view.state)},B.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},B.prototype.writeValue=function(t){this.value=null===t?void 0:t},B.prototype.registerOnChange=function(t){this.onChangeCallback=t},B.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},B.prototype.isEmpty=function(){return!1},B.prototype.initialize=function(){var t,o,e,n,i,r,a,l,d=this;u.isDocumentAvailable()&&(t=this.schema||h.schema,l=(o=this).container.element.nativeElement,e=m.parseContent((this.value||"").trim(),t,{preserveWhitespace:this.preserveWhitespace}),this.iframe?((i=(n=l.contentDocument).createElement("meta")).setAttribute("charset","utf-8"),n.head.appendChild(i),[E.defaultStyle,E.tablesStyles,"rtl"===this.dir?E.rtlStyles:void 0].forEach(function(t){var e;t&&((e=n.createElement("style")).appendChild(n.createTextNode(t)),n.head.appendChild(e))}),i=n.createElement("div"),n.body.appendChild(i)):(i=document.createElement("div"),l.appendChild(i)),i=[new m.Plugin({key:new m.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:d.readonly?"0":""}}}}),new m.Plugin({key:new m.PluginKey("toolbar-tools-update"),view:function(){return{update:function(t){d.disabled||d.stateChange.next(d.readonly?_.disabledToolBarState:_.getToolbarState(t.state,{applyToWord:d.applyToWord}))}}}}),new m.Plugin({key:new m.PluginKey("editor-filter-disabled-state"),filterTransaction:function(){return!d.disabled}}),m.history(),m.keymap(m.buildListKeymap(t)),m.keymap(m.buildKeymap(t,{applyToWord:this.applyToWord})),m.keymap(m.baseKeymap),m.gapCursor(),m.imageResizing()],this.placeholder&&i.push(m.placeholder(this.placeholder)),r=m.EditorState.create({schema:t,doc:e,plugins:b.isPresent(this.plugins)?this.plugins(i):i}),this.iframe?this.viewMountElement=l.contentDocument.querySelector("div"):this.viewMountElement=l.querySelector("div"),this.ngZone.runOutsideAngular(function(){d._view=new m.EditorView({mount:d.viewMountElement},{state:r,editable:function(){return!d.readonly},dispatchTransaction:function(t){this.updateState(this.state.apply(t));var e=o.value;m.hasSameMarkup(e,o._previousValue,this.state.schema)||(o._previousValue=e,o.ngZone.run(function(){return o.valueModified.next(e)}))},transformPastedHTML:function(t){var e=s.__assign({},T,d.pasteCleanupSettings),o=b.pipe(D(e.removeHtmlComments),S(e.removeInvalidHTML))(t),t=function(t){if("all"===t.removeAttributes)return{"*":m.removeAttribute};var e=b.removeEmptyEntries({style:t.removeMsStyles?m.sanitizeStyleAttr:void 0,class:t.removeMsClasses?m.sanitizeClassAttr:void 0});return t.removeAttributes.reduce(function(t,e){return s.__assign({},t,((t={})[e]=m.removeAttribute,t))},e)}(e);return m.pasteCleanup(o,{convertMsLists:e.convertMsLists,stripTags:e.stripTags.join("|"),attributes:t})}})}),this._view&&(l=void 0,a=this.element.nativeElement.querySelector(".k-editor-content").classList,l=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(c.fromEvent(l,"focusin").subscribe(function(){d.readonly&&a.add("k-state-focused"),d.focusChangedProgrammatically&&!d.shouldEmitFocus||(d.ngZone.run(function(){return d.onFocus.emit()}),d.shouldEmitFocus=!1)})),this.subs.add(c.fromEvent(l,"focusout").subscribe(function(){d.readonly&&a.remove("k-state-focused"),d.focusChangedProgrammatically||d.ngZone.run(function(){return d.onBlur.emit()})}))),this.subs.add(this.stateChange.subscribe(function(){(d.userToolBarComponent||d).cdr.detectChanges()})),this.subs.add(c.merge(this.valueModified.pipe(p.filter(function(){return 0<d.updateInterval}),p.auditTime(this.updateInterval)),this.valueModified.pipe(p.filter(function(){return 0===d.updateInterval}))).subscribe(function(t){d.onChangeCallback(t),d.valueChange.emit(t),d.cdr.markForCheck()})),this.subs.add(c.fromEvent(this.viewMountElement,"keyup").pipe(p.map(function(t){return t.keyCode}),p.filter(function(t){return 121===t}),p.map(function(){return d.userToolBarElement||d.defaultToolbar})).subscribe(function(t){return t.nativeElement.focus()})),this.subs.add(c.fromEvent(this.viewMountElement,"blur").pipe(p.filter(function(t){return!d.viewMountElement.contains(t.relatedTarget)})).subscribe(function(){return d.onTouchedCallback()})))},B.prototype.normalizeSize=function(){var t,e=this;"object"!=typeof this.resizable||this._styleObserver||(t=this.element.nativeElement,this._styleObserver=new MutationObserver(function(){e.ngZone.runOutsideAngular(function(){return e.normalizeProperties(t)})}),this._styleObserver.observe(t,{attributeFilter:["style"]}))},B.prototype.normalizeProperties=function(i){var t=Object.keys(this.resizable),r=parseInt(i.style.width,10),a=parseInt(i.style.height,10),l=this.resizable;t.forEach(function(t){var e=t.startsWith("min"),o=!e,n=t.endsWith("Width"),t=!n;e&&n?r<l.minWidth&&(i.style.width=l.minWidth+"px"):e&&t?a<l.minHeight&&(i.style.height=l.minHeight+"px"):o&&n?r>l.maxWidth&&(i.style.width=l.maxWidth+"px"):a>l.maxHeight&&(i.style.height=l.maxHeight+"px")})},s.__decorate([a.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"value",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"disabled",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[Boolean])],B.prototype,"readonly",null),s.__decorate([a.Input(),s.__metadata("design:type",Boolean)],B.prototype,"iframe",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"applyToWord",void 0),s.__decorate([a.Input(),s.__metadata("design:type",m.Schema),s.__metadata("design:paramtypes",[m.Schema])],B.prototype,"schema",null),s.__decorate([a.Input(),s.__metadata("design:type",Function),s.__metadata("design:paramtypes",[Function])],B.prototype,"plugins",null),s.__decorate([a.Input(),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[String])],B.prototype,"placeholder",null),s.__decorate([a.Input(),s.__metadata("design:type",Number)],B.prototype,"updateInterval",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"preserveWhitespace",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"pasteCleanupSettings",void 0),s.__decorate([a.Input(),s.__metadata("design:type",Object)],B.prototype,"resizable",void 0),s.__decorate([a.Output(),s.__metadata("design:type",a.EventEmitter)],B.prototype,"valueChange",void 0),s.__decorate([a.Output("focus"),s.__metadata("design:type",a.EventEmitter)],B.prototype,"onFocus",void 0),s.__decorate([a.Output("blur"),s.__metadata("design:type",a.EventEmitter)],B.prototype,"onBlur",void 0),s.__decorate([a.HostBinding("class.k-editor"),s.__metadata("design:type",Boolean)],B.prototype,"hostClass",void 0),s.__decorate([a.HostBinding("class.k-editor-resizable"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"resizableClass",null),s.__decorate([a.HostBinding("class.k-state-disabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),s.__decorate([a.HostBinding("class.k-readonly"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isReadonly",null),s.__decorate([a.HostBinding("class.k-ie"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"isIE",null),s.__decorate([a.HostBinding("attr.dir"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"dir",null),s.__decorate([a.HostBinding("attr.ariaDisabled"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],B.prototype,"ariaDisabled",null),s.__decorate([a.HostBinding("style.minWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minWidth",null),s.__decorate([a.HostBinding("style.maxWidth"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxWidth",null),s.__decorate([a.HostBinding("style.minHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"minHeight",null),s.__decorate([a.HostBinding("style.maxHeight"),s.__metadata("design:type",String),s.__metadata("design:paramtypes",[])],B.prototype,"maxHeight",null),s.__decorate([a.ContentChild(r.ToolBarComponent,{static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"userToolBarComponent",void 0),s.__decorate([a.ContentChild(r.ToolBarComponent,{read:a.ElementRef,static:!1}),s.__metadata("design:type",a.ElementRef)],B.prototype,"userToolBarElement",void 0),s.__decorate([a.ViewChild("dialogsContainer",{read:a.ViewContainerRef,static:!0}),s.__metadata("design:type",a.ViewContainerRef)],B.prototype,"dialogContainer",void 0),s.__decorate([a.ViewChild("content",{read:a.ViewContainerRef,static:!1}),s.__metadata("design:type",a.ViewContainerRef)],B.prototype,"container",void 0),s.__decorate([a.ViewChild("defaultToolbar",{read:a.ElementRef,static:!1}),s.__metadata("design:type",a.ElementRef)],B.prototype,"defaultToolbar",void 0),s.__decorate([a.ViewChild("defaultToolbar",{read:r.ToolBarComponent,static:!1}),s.__metadata("design:type",r.ToolBarComponent)],B.prototype,"defaultToolbarComponent",void 0),n=s.__decorate([a.Component({selector:"kendo-editor",providers:[w.EditorLocalizationService,{provide:k.LocalizationService,useExisting:w.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:i.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return n}),multi:!0},{provide:u.KendoInput,useExisting:a.forwardRef(function(){return n})}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."\n bold="Bold"\n i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."\n cleanFormatting="Clean formatting"\n i18n-createLink="kendo.editor.createLink|The title of the tool that creates hyperlinks."\n createLink="Insert link"\n i18n-dialogApply="kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs."\n dialogApply="Apply"\n i18n-dialogCancel="kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs."\n dialogCancel="Cancel"\n i18n-dialogInsert="kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs."\n dialogInsert="Insert"\n i18n-dialogUpdate="kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs."\n dialogUpdate="Update"\n i18n-fileText="kendo.editor.fileText|The caption for the file text in the insertFile dialog."\n fileText="Text"\n i18n-fileTitle="kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog."\n fileTitle="Title"\n i18n-fileWebAddress="kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog."\n fileWebAddress="Web address"\n i18n-fontFamily="kendo.editor.fontFamily|The title of the tool that changes the text font."\n fontFamily="Select font family"\n i18n-fontSize="kendo.editor.fontSize|The title of the tool that changes the text size."\n fontSize="Select font size"\n i18n-foreColor="kendo.editor.foreColor|The title of the tool that changes the text color."\n foreColor="Color"\n i18n-format="kendo.editor.format|The title of the tool that lets users choose block formats."\n format="Format"\n i18n-imageAltText="kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog."\n imageAltText="Alternate text"\n i18n-imageHeight="kendo.editor.imageHeight|The caption for the image height in the insertImage dialog."\n imageHeight="Height (px)"\n i18n-imageWebAddress="kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog."\n imageWebAddress="Web address"\n i18n-imageWidth="kendo.editor.imageWidth|The caption for the image width in the insertImage dialog."\n imageWidth="Width (px)"\n i18n-indent="kendo.editor.indent|The title of the tool that indents the content."\n indent="Indent"\n i18n-insertFile="kendo.editor.insertFile|The title of the tool that inserts links to files."\n insertFile="Insert file"\n i18n-insertImage="kendo.editor.insertImage|The title of the tool that inserts images."\n insertImage="Insert image"\n i18n-insertOrderedList="kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list."\n insertOrderedList="Insert ordered list"\n i18n-insertUnorderedList="kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list."\n insertUnorderedList="Insert unordered list"\n i18n-italic="kendo.editor.italic|The title of the tool that makes text italicized."\n italic="Italic"\n i18n-linkOpenInNewWindow="kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog."\n linkOpenInNewWindow="Open link in new window"\n i18n-linkText="kendo.editor.linkText|The caption for the link text in the createLink dialog."\n linkText="Text"\n i18n-linkTitle="kendo.editor.linkTitle|The caption for the link title in the createLink dialog."\n linkTitle="Title"\n i18n-linkWebAddress="kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog."\n linkWebAddress="Web address"\n i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."\n outdent="Outdent"\n i18n-print="kendo.editor.print|The title of the print tool."\n print="Print"\n i18n-redo="kendo.editor.redo|The title of the tool that undos the last action."\n redo="Redo"\n i18n-selectAll="kendo.editor.selectAll|The title of the tool that selects all content."\n selectAll="Select All"\n i18n-strikethrough="kendo.editor.strikethrough|The title of the tool that strikes through text."\n strikethrough="Strikethrough"\n i18n-subscript="kendo.editor.subscript|The title of the tool that makes text subscript."\n subscript="Subscript"\n i18n-superscript="kendo.editor.superscript|The title of the tool that makes text superscript."\n superscript="Superscript"\n i18n-underline="kendo.editor.underline|The title of the tool that underlines text."\n underline="Underline"\n i18n-unlink="kendo.editor.unlink|The title of the tool that removes hyperlinks."\n unlink="Remove Link"\n i18n-undo="kendo.editor.undo|The title of the tool that undos the last action."\n undo="Undo"\n i18n-viewSource="kendo.editor.viewSource|The title of the tool that shows the editor value as HTML."\n viewSource="View source"\n i18n-insertTable="kendo.editor.insertTable|The title of the tool that inserts table."\n insertTable="Insert Table"\n i18n-addColumnBefore="kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column."\n addColumnBefore="Add column before"\n i18n-addColumnAfter="kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column."\n addColumnAfter="Add column after"\n i18n-addRowBefore="kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row."\n addRowBefore="Add row before"\n i18n-addRowAfter="kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row."\n addRowAfter="Add row after"\n i18n-deleteColumn="kendo.editor.deleteColumn|The title of the tool that deletes a table column."\n deleteColumn="Delete column"\n i18n-deleteRow="kendo.editor.deleteRow|The title of the tool that deletes a table row."\n deleteRow="Delete row"\n i18n-deleteTable="kendo.editor.deleteTable|The title of the tool that deletes a table."\n deleteTable="Delete table"\n >\n </ng-container>\n\n <ng-content select="kendo-toolbar"></ng-content>\n <kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf="!iframe" #content [attr.dir]="direction" class="k-editor-content"></div>\n\n <div class="k-editor-content" *ngIf="iframe">\n <iframe #content frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),s.__metadata("design:paramtypes",[l.DialogService,k.LocalizationService,a.ChangeDetectorRef,a.NgZone,a.ElementRef])],B));function B(t,e,o,n,i){var r=this;this.dialogService=t,this.localization=e,this.cdr=o,this.ngZone=n,this.element=i,this.iframe=!0,this.applyToWord=!1,this.updateInterval=100,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.hostClass=!0,this.stateChange=new c.BehaviorSubject(_.initialToolBarState),this.valueModified=new c.Subject,this._readonly=!1,this._placeholder="",this.afterViewInit=new c.Subject,this.contentAreaLoaded=new c.Subject,this.onChangeCallback=function(t){},this.onTouchedCallback=function(t){},d.validatePackage(f.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.subs=c.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe(function(){return r.initialize()})}e.EditorComponent=k},function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),n=(r=o(24).EditorCommandBase,n.__extends(i,r),i.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},i.prototype.pointerdownHandler=function(t){t.preventDefault()},i.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},i);function i(t,e,o,n){var i=r.call(this,t,e,o,n)||this;return i.command=t,i.button=e,i.editor=o,i.localization=n,i}e.EditorCommandButton=n},function(t,e){t.exports=m},function(t,e){t.exports=a},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(14);o.outerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return e+(parseFloat(t.marginLeft)||0+parseFloat(t.marginRight)||0)},o.removeEntries=function(o,e){return Object.keys(o).filter(function(t){return e(t)}).reduce(function(t,e){return Object.assign(t,((t={})[e]=o[e],t))},{})},o.removeEmptyEntries=function(e){return o.removeEntries(e,function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]})},o.isEmpty=function(t){return 0===Object.keys(t).length},o.isNullOrUndefined=function(t){return null==t},o.isPresent=function(t){return!o.isNullOrUndefined(t)},o.detectIE=function(){if(!n.isDocumentAvailable())return!1;var t=window.navigator.userAgent,e=t.indexOf("MSIE "),t=t.indexOf("Trident/");return 0<e||0<t},o.safeString=function(t){return o.isNullOrUndefined(t)?"":t.toString()},o.first=function(t){return t[0]},o.last=function(t){return t[t.length-1]},o.unique=function(t){return Array.from(new Set(t))},o.split=function(e){return function(t){return t.split(e)}},o.trim=function(t){return t.trim()},o.filter=function(e){return function(t){return t.filter(e)}},o.toArray=function(t){return t instanceof Array?t:[t]},o.getUniqueStyleValues=function(t,e){if(t.hasNodesWithoutMarks)return"";t=t.marks.filter(function(t){return"style"===t.type.name}).map(function(t){return t.attrs.style}).map(o.safeString).map(o.split(";")).map(o.filter(function(t){return t.includes(e)})).map(function(t){return 0!==t.length?t:[e+": INVALID"]}).map(o.first).map(o.split(":")).map(o.last).map(o.trim).reduce(function(t,e){return-1<t.indexOf(e)?t:t.concat([e])},[]);return-1<t.indexOf("INVALID")||1!==t.length?"":t[0]},o.conditionallyExecute=function(o){return function(e){return function(t){return e?o(t):t}}},o.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce(function(t,e){return e(t)},t)}}},function(t,e){t.exports=y},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0);e.hasAttrs=function(t,e){for(var o in t)if(o&&null!==t[o]&&o!==e)return!0;return!1},e.getAttrs=function(t,e){var o,n={};for(o in t)o&&null!==t[o]&&o!==e&&(n[o]=t[o]);return n},e.getAttributes=function(t){for(var e,o={},n=t.attributes,i=0;i<n.length;i++)o[(e=n[i]).name]=e.value;return o},e.serializeDOMAttrs=function(t){return Array.from(t.attributes).reduce(function(t,e){return Object.assign({},t,((t={})[e.name]=e.value,t))},{})},e.commonAttributes=function(){return n.__assign({},e.createDefaultAttributes(["class","id","style"]))},e.createDefaultAttributes=function(t){return n.__assign({},(t=void 0===t?[]:t).reduce(function(t,e){return n.__assign({},t,((t={})[e]={default:null},t))},{}))},e.hole=0,e.isSchemaNode=function(e){return function(t){return t.type.name===e}},e.isTable=e.isSchemaNode("table"),e.isTableBody=e.isSchemaNode("table_body"),e.isTableHead=e.isSchemaNode("table_head"),e.isTableFoot=e.isSchemaNode("table_foot"),e.isTableRow=e.isSchemaNode("table_row"),e.isTableCell=e.isSchemaNode("table_cell"),e.isTableHeaderCell=e.isSchemaNode("table_header")},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=o(0),n=(r=o(24).EditorCommandBase,n.__extends(i,r),i.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},i.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},i);function i(t,e,o,n){var i=r.call(this,t,e,o,n)||this;return i.dialog=t,i.button=e,i.editor=o,i.localization=n,i}e.EditorCommandDialog=n},function(t,e){t.exports=h},function(t,e){t.exports=u},function(t,e){t.exports=b},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(4),d=o(12),s=o(2),c=o(8),p=o(3),u=o(6),m=o(28),f=o(22),a=(r=l.ToolBarToolComponent,i.__extends(h,r),n=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var e=this;this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.disabled=t.disabled})},h.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},h.prototype.handleValueChange=function(t){this.editor.exec(this.editorCommand,t)},h.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.handleValueChange(t.color)},h.prototype.onOpen=function(t){this.valueCache=t.value,t.reset()},h.prototype.onClose=function(t){var e=this;t.value||(t.value=this.valueCache),this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){return e.editor.view.focus()})},Object.defineProperty(h.prototype,"outerWidth",{get:function(){if(this.element)return c.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),h.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:m.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,view:this.view})},h.prototype.canFocus=function(){return!this.disabled},h.prototype.focus=function(){this.tabindex=0,(this.overflows?this.colorPickerButton.nativeElement:this.colorPicker).focus()},h.prototype.handleKey=function(){return!(this.tabindex=-1)},i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"icon",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],h.prototype,"paletteSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"editorCommand",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],h.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"view",void 0),i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],h.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("colorpicker",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"element",void 0),i.__decorate([a.ViewChild("colorpicker",{read:d.ColorPickerComponent,static:!1}),i.__metadata("design:type",d.ColorPickerComponent)],h.prototype,"colorPicker",void 0),i.__decorate([a.ViewChild("colorPickerButton",{read:a.ElementRef,static:!1}),i.__metadata("design:type",a.ElementRef)],h.prototype,"colorPickerButton",void 0),n=i.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[p.EditorComponent,s.EditorLocalizationService,u.DialogService,a.NgZone])],h));function h(t,e,o,n){var i=r.call(this)||this;return i.editor=t,i.localization=e,i.dialogService=o,i.ngZone=n,i.tabindex=-1,i.disabled=!1,i.view="palette",i}e.EditorColorPickerComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}e.FontSizeDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}e.FontFamilyDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),o=o(13),n=(r.prototype.onValueChange=function(t){this.valueChange.emit(t)},r.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],r.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],r.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],r.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:o.DropDownListComponent,static:!0}),n.__metadata("design:type",o.DropDownListComponent)],r.prototype,"dropDownList",void 0),n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'blockquote\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n '})],r));function r(){this.valueChange=new i.EventEmitter}e.FormatDropDownListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r,a,l,D=o(10);r="undefined"!=typeof WeakMap?(n=new WeakMap,i=function(t){return n.get(t)},function(t,e){return n.set(t,e),e}):(a=[],l=0,i=function(t){for(var e=0;e<a.length;e+=2)if(a[e]===t)return a[e+1]},function(t,e){return 10===l&&(l=0),a[l++]=t,a[l++]=e});function d(t){if(!(D.isTable(t)||D.isTableBody(t)||D.isTableHead(t)||D.isTableFoot(t)))throw new RangeError("Not a table node: "+t.type.name);for(var e=function(t){for(var e=-1,o=!1,n=0;n<t.childCount;n++){var i,r=t.child(n),a=0;if(o)for(var l=0;l<n;l++)for(var d=t.child(l),s=0;s<d.childCount;s++)l+(i=d.child(s)).attrs.rowspan>n&&(a+=i.attrs.colspan);for(s=0;s<r.childCount;s++)a+=(i=r.child(s)).attrs.colspan,1<i.attrs.rowspan&&(o=!0);-1===e?e=a:e!==a&&(e=Math.max(e,a))}return e}(t),o=t.childCount,n=[],i=0,r=null,a=[],l=0,d=e*o;l<d;l++)n[l]=0;for(var s=0,c=0;s<o;s++){var p=t.child(s);for(c++,l=0;;l++){for(;i<n.length&&0!==n[i];)i++;if(l===p.childCount)break;for(var u=p.child(l),m=u.attrs,f=m.colspan,h=m.rowspan,g=m.colwidth,_=0;_<h;_++){if(o<=_+s){(r=r||[]).push({type:"overlong_rowspan",pos:c,n:h-_});break}for(var b=i+_*e,v=0;v<f;v++){0===n[b+v]?n[b+v]=c:(r=r||[]).push({type:"collision",row:s,pos:c,n:f-v});var y,C,k=g&&g[v];k&&(null==(C=a[y=(b+v)%e*2])||C!==k&&1===a[1+y]?(a[y]=k,a[1+y]=1):C===k&&a[1+y]++)}}i+=f,c+=u.nodeSize}for(var w=(s+1)*e,E=0;i<w;)0===n[i++]&&E++;E&&(r=r||[]).push({type:"missing",row:s,n:E}),c++}for(var x=new S(e,o,n,r),T=!1,l=0;!T&&l<a.length;l+=2)null!=a[l]&&a[l+1]<o&&(T=!0);return T&&function(t,e,o){t.problems||(t.problems=[]);for(var n=0,i={};n<t.map.length;n++){var r=t.map[n];if(!i[r]){i[r]=!0;for(var a=o.nodeAt(r),l=null,d=0;d<a.attrs.colspan;d++){var s=e[(n+d)%t.width*2];null==s||a.attrs.colwidth&&a.attrs.colwidth[d]===s||((l=l||function(t){if(t.colwidth)return t.colwidth.slice();for(var e=[],o=0;o<t.colspan;o++)e.push(0);return e}(a.attrs))[d]=s)}l&&t.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:l})}}}(x,a,t),x}var s=function(t,e,o,n){this.left=t,this.top=e,this.right=o,this.bottom=n};e.Rect=s;var S=(c.get=function(t){return i(t)||r(t,d(t))},c.prototype.findCell=function(t){for(var e=0;e<this.map.length;e++){var o=this.map[e];if(o===t){for(var n=e%this.width,i=Math.floor(e/this.width),r=1+n,a=i+1,l=1;r<this.width&&this.map[e+l]===o;l++)r++;for(l=1;a<this.height&&this.map[e+this.width*l]===o;l++)a++;return new s(n,i,r,a)}}throw new RangeError("No cell with offset "+t+" found")},c.prototype.colCount=function(t){for(var e=0;e<this.map.length;e++)if(this.map[e]===t)return e%this.width;throw new RangeError("No cell with offset "+t+" found")},c.prototype.nextCell=function(t,e,o){var n=this.findCell(t),i=n.left,r=n.right,t=n.top,n=n.bottom;return"horiz"===e?(o<0?0===i:r===this.width)?null:this.map[t*this.width+(o<0?i-1:r)]:(o<0?0===t:n===this.height)?null:this.map[i+this.width*(o<0?t-1:n)]},c.prototype.rectBetween=function(t,e){var o=this.findCell(t),n=o.left,i=o.right,r=o.top,a=o.bottom,l=this.findCell(e),t=l.left,o=l.right,e=l.top,l=l.bottom;return new s(Math.min(n,t),Math.min(r,e),Math.max(i,o),Math.max(a,l))},c.prototype.cellsInRect=function(t){for(var e=[],o={},n=t.top;n<t.bottom;n++)for(var i=t.left;i<t.right;i++){var r=n*this.width+i,a=this.map[r];o[a]||(o[a]=!0,i===t.left&&i&&this.map[r-1]===a||n===t.top&&n&&this.map[r-this.width]===a||e.push(a))}return e},c.prototype.positionAt=function(t,e,o){for(var n=0,i=0;;n++){var r=i+o.child(n).nodeSize;if(n===t){for(var a=e+t*this.width,l=(t+1)*this.width;a<l&&this.map[a]<i;)a++;return a===l?r-1:this.map[a]}i=r}},c);function c(t,e,o,n){this.width=t,this.height=e,this.map=o,this.problems=n}e.TableMap=S},function(t,e){t.exports=_},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),i=(n=o(9).ComponentMessages,i.__extends(a,n),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignCenter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignJustify",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignLeft",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"alignRight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"backColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"bold",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"cleanFormatting",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"createLink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontFamily",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fontSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"foreColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"indent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertFile",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertImage",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertOrderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertUnorderedList",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"italic",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"outdent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"print",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"redo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"selectAll",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"strikethrough",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"subscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"superscript",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"underline",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"undo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"unlink",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"viewSource",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"insertTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addColumnAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowBefore",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"addRowAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteColumn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"deleteTable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogApply",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogCancel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogInsert",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"dialogUpdate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"fileWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageAltText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWebAddress",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"imageWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkOpenInNewWindow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"linkWebAddress",void 0),a);function a(){return null!==n&&n.apply(this,arguments)||this}e.Messages=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(16),o=(n.prototype.ngOnInit=function(){this.subs=this.editor.stateChange.subscribe(this.onStateChange.bind(this)),this.subs.add(this.button.click.subscribe(this.clickHandler.bind(this))),this.subs.add(this.button.pointerdown.subscribe(this.pointerdownHandler.bind(this)))},n.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},n.prototype.clickHandler=function(){},n.prototype.pointerdownHandler=function(t){},n.prototype.onStateChange=function(t){},n);function n(t,e,o,n){var i=this;this.command=t,this.button=e,this.editor=o,this.localization=n,setTimeout(function(){var t=i.localization.get(i.command);t&&(i.button.showText="overflow",i.button.showIcon="both",i.button.text=t),i.button.toolbarOptions.icon||(i.button.icon=r.commandIcons[i.command]),i.button.title=t})}e.EditorCommandBase=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(18),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.fontSizeDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontSizeDropDownList",{read:o.FontSizeDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontSizeDropDownListComponent)],s.prototype,"fontSizeDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FontSizeDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),o=o(3),l=(n=a.DialogContentBase,i.__extends(d,n),d.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},d.prototype.onCellClick=function(t){this.dialog.close(),this.editor.exec("insertTable",t),this.editor.view.focus()},d.prototype.setData=function(t){this.editor=t.editor},d.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",o.EditorComponent)],d.prototype,"editor",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],d));function d(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o}e.InsertTableDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(19),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.fontFamilyDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("fontFamilyDropDownList",{read:o.FontFamilyDropDownListComponent,static:!0}),i.__metadata("design:type",o.FontFamilyDropDownListComponent)],s.prototype,"fontFamilyDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FontFamilyDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(12),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.colorPicker.focus()})},s.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.value=t.color},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.value=t.value,this.editorCommand=t.editorCommand,this.paletteSettings=t.paletteSettings,this.icon=t.icon,this.view=t.view},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("colorpicker",{read:o.ColorPickerComponent,static:!0}),i.__metadata("design:type",o.ColorPickerComponent)],s.prototype,"colorPicker",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [view]="view"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o}e.ColorPickerDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),l=o(2),d=o(3),o=o(20),l=(n=a.DialogContentBase,i.__extends(s,n),s.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.formatDropDownList.dropDownList.focus()})},s.prototype.onCancelAction=function(){this.dialog.close()},s.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},s.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},s.prototype.textFor=function(t){return this.localization.get(t)},i.__decorate([r.Input(),i.__metadata("design:type",d.EditorComponent)],s.prototype,"editor",void 0),i.__decorate([r.ViewChild("formatDropDownList",{read:o.FormatDropDownListComponent,static:!0}),i.__metadata("design:type",o.FormatDropDownListComponent)],s.prototype,"formatDropDownList",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,l.EditorLocalizationService])],s));function s(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data=[],o}e.FormatDialogComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(t){return"plugins must be a function, but received "+JSON.stringify(t)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(15),l=o(6),d=o(7),s=o(8),o=o(2),o=(n=l.DialogContentBase,i.__extends(c,n),c.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.hrefInput.nativeElement.focus()})},c.prototype.onCancelAction=function(){this.dialog.close()},c.prototype.onConfirmAction=function(){var t=this.getData();this.editor.exec(this.command,t),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(c.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),c.prototype.setData=function(t,e){"createLink"===this.command&&this.linkForm.addControl("target",new a.FormControl);var o=d.getMark(t,t.schema.marks.link);o?this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:s.isPresent(o.attrs.target),text:this.setLinkText(t)}):t.selection.empty?(e=e.applyToWord?d.expandSelection(t,function(){},e).state:t).selection.empty||this.linkForm.patchValue({text:d.getSelectionText(e)}):this.linkForm.patchValue({text:d.getSelectionText(t)})},c.prototype.textForWithPrefix=function(t){var e="createLink"===this.command?"link":"file";return this.textFor(e+t)},c.prototype.textFor=function(t){return this.localization.get(t)},c.prototype.setLinkText=function(t){var e=t.selection;if(e.empty&&e.$cursor){var o=e.$cursor,e=o.index();return o.parent.child(e).text}return d.getSelectionText(t)},c.prototype.getData=function(){var t=this.linkForm.value;return s.isPresent(this.linkForm.controls.target)&&(t.target=t.target?"_blank":null),t},i.__decorate([r.Input(),i.__metadata("design:type",Object)],c.prototype,"editor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],c.prototype,"command",void 0),i.__decorate([r.ViewChild("hrefInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],c.prototype,"hrefInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="textInput.focus()">{{ textForWithPrefix(\'Text\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #textInput formControlName="text" type="text" class="k-textbox" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="titleInput.focus()">{{ textForWithPrefix(\'Title\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #titleInput formControlName="title" type="text" class="k-textbox" />\n </div>\n <ng-container *ngIf="command === \'createLink\'">\n <div class="k-edit-label"></div>\n <div class="k-edit-field">\n <input type="checkbox" id="k-target-blank" class="k-checkbox" formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,o.EditorLocalizationService])],c));function c(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.linkForm=new a.FormGroup({href:new a.FormControl("",a.Validators.required),text:new a.FormControl({value:"",disabled:!0},a.Validators.required),title:new a.FormControl("")}),o}e.FileLinkDialogComponent=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(15),l=o(6),d=o(7),s=o(8),c=o(2),p=o(14),c=(n=l.DialogContentBase,i.__extends(u,n),u.prototype.ngOnInit=function(){this.srcInputId="k-"+p.guid(),this.altTextInputId="k-"+p.guid(),this.widthInputId="k-"+p.guid(),this.heightInputId="k-"+p.guid()},u.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.srcInput.nativeElement.focus()})},u.prototype.onCancelAction=function(){this.dialog.close()},u.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},u.prototype.setData=function(t){t=d.getNodeFromSelection(t);t&&(this.src.patchValue(t.attrs.src),this.alt.patchValue(t.attrs.alt),this.width.patchValue(t.attrs.width),this.height.patchValue(t.attrs.height))},u.prototype.textFor=function(t){return this.localization.get(t)},u.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},u.prototype.normalizeDimension=function(t){return Number.isNaN(parseInt(t,10))||parseInt(t,10)<=0?"":s.safeString(parseInt(t,10))},i.__decorate([r.Input(),i.__metadata("design:type",Object)],u.prototype,"editor",void 0),i.__decorate([r.ViewChild("srcInput",{read:r.ElementRef,static:!0}),i.__metadata("design:type",r.ElementRef)],u.prototype,"srcInput",void 0),i.__decorate([r.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="altTextInputId">{{ textFor(\'imageAltText\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="widthInputId">{{ textFor(\'imageWidth\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox" />\n </div>\n <div class="k-edit-label">\n <label [for]="heightInputId">{{ textFor(\'imageHeight\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[l.DialogRef,c.EditorLocalizationService])],u));function u(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.src=new a.FormControl("",a.Validators.required),o.alt=new a.FormControl(""),o.width=new a.FormControl("",a.Validators.min(1)),o.height=new a.FormControl("",a.Validators.min(1)),o.data={alt:"",height:"",src:"",width:""},o.imageData=new a.FormGroup({alt:o.alt,height:o.height,src:o.src,width:o.width}),o}e.ImageDialogComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(6),o=o(2),o=(n=a.DialogContentBase,i.__extends(l,n),l.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then(function(){t.textarea.nativeElement.focus()})},l.prototype.onCancelAction=function(){this.dialog.close()},l.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},l.prototype.getData=function(){return this.textarea.nativeElement.value},l.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},l.prototype.textFor=function(t){return this.localization.get(t)},l.prototype.indent=function(t){return t.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},i.__decorate([r.Input(),i.__metadata("design:type",Object)],l.prototype,"editor",void 0),i.__decorate([r.ViewChild("textarea",{static:!0}),i.__metadata("design:type",r.ElementRef)],l.prototype,"textarea",void 0),i.__decorate([r.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),i.__metadata("design:paramtypes",[a.DialogRef,o.EditorLocalizationService])],l));function l(t,e){var o=n.call(this,t)||this;return o.dialog=t,o.localization=e,o.data="",o}e.SourceDialogComponent=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d,n=o(0),h=o(7),g=o(21),_=o(35),i=(d=h.Selection,n.__extends(l,d),l.colSelection=function(t,e){void 0===e&&(e=t);var o=g.TableMap.get(t.node(-1)),n=t.start(-1),i=o.findCell(t.pos-n),r=o.findCell(e.pos-n),a=t.node(0);return i.top<=r.top?(0<i.top&&(t=a.resolve(n+o.map[i.left])),r.bottom<o.height&&(e=a.resolve(n+o.map[o.width*(o.height-1)+r.right-1]))):(0<r.top&&(e=a.resolve(n+o.map[r.left])),i.bottom<o.height&&(t=a.resolve(n+o.map[o.width*(o.height-1)+i.right-1]))),new l(t,e)},l.rowSelection=function(t,e){void 0===e&&(e=t);var o=g.TableMap.get(t.node(-1)),n=t.start(-1),i=o.findCell(t.pos-n),r=o.findCell(e.pos-n),a=t.node(0);return i.left<=r.left?(0<i.left&&(t=a.resolve(n+o.map[i.top*o.width])),r.right<o.width&&(e=a.resolve(n+o.map[o.width*(r.top+1)-1]))):(0<r.left&&(e=a.resolve(n+o.map[r.top*o.width])),i.right<o.width&&(t=a.resolve(n+o.map[o.width*(i.top+1)-1]))),new l(t,e)},l.fromJSON=function(t,e){return new l(t.resolve(e.anchor),t.resolve(e.head))},l.create=function(t,e,o){return void 0===o&&(o=e),new l(t.resolve(e),t.resolve(o))},l.prototype.map=function(t,e){var o=t.resolve(e.map(this.$anchorCell.pos)),t=t.resolve(e.map(this.$headCell.pos));if(_.pointsAtCell(o)&&_.pointsAtCell(t)&&_.inSameTable(o,t)){e=this.$anchorCell.node(-1)!==o.node(-1);return e&&this.isRowSelection()?l.rowSelection(o,t):e&&this.isColSelection()?l.colSelection(o,t):new l(o,t)}return h.TextSelection.between(o,t)},l.prototype.content=function(){for(var t=this.$anchorCell.node(-1),e=g.TableMap.get(t),o=this.$anchorCell.start(-1),n=e.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o),i={},r=[],a=n.top;a<n.bottom;a++){for(var l=[],d=a*e.width+n.left,s=n.left;s<n.right;s++,d++){var c,p,u,m,f=e.map[d];i[f]||(i[f]=!0,c=e.findCell(f),p=t.nodeAt(f),u=n.left-c.left,f=c.right-n.right,(0<u||0<f)&&(m=p.attrs,0<u&&(m=_.removeColSpan(m,0,u)),0<f&&(m=_.removeColSpan(m,m.colspan-f,f)),p=c.left<n.left?p.type.createAndFill(m):p.type.create(m,p.content)),(c.top<n.top||c.bottom>n.bottom)&&(m=_.setAttr(p.attrs,"rowspan",Math.min(c.bottom,n.bottom)-Math.max(c.top,n.top)),p=c.top<n.top?p.type.createAndFill(m):p.type.create(m,p.content)),l.push(p))}r.push(t.child(a).copy(h.Fragment.from(l)))}o=this.isColSelection()&&this.isRowSelection()?t:r;return new h.Slice(h.Fragment.from(o),1,1)},l.prototype.replace=function(t,e){void 0===e&&(e=h.Slice.empty);for(var o=t.steps.length,n=this.ranges,i=0;i<n.length;i++){var r=n[i],a=r.$from,l=r.$to,r=t.mapping.slice(o);t.replace(r.map(a.pos),r.map(l.pos),i?h.Slice.empty:e)}var d=h.Selection.findFrom(t.doc.resolve(t.mapping.slice(o).map(this.to)),-1);d&&t.setSelection(d)},l.prototype.replaceWith=function(t,e){this.replace(t,new h.Slice(h.Fragment.from(e),0,0))},l.prototype.forEachCell=function(t){for(var e=this.$anchorCell.node(-1),o=g.TableMap.get(e),n=this.$anchorCell.start(-1),i=o.cellsInRect(o.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n)),r=0;r<i.length;r++)t(e.nodeAt(i[r]),n+i[r])},l.prototype.isColSelection=function(){var t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(0<Math.min(t,e))return!1;t+=this.$anchorCell.nodeAfter.attrs.rowspan,e+=this.$headCell.nodeAfter.attrs.rowspan;return Math.max(t,e)===this.$headCell.node(-1).childCount},l.prototype.isRowSelection=function(){var t=g.TableMap.get(this.$anchorCell.node(-1)),e=this.$anchorCell.start(-1),o=t.colCount(this.$anchorCell.pos-e),e=t.colCount(this.$headCell.pos-e);if(0<Math.min(o,e))return!1;o+=this.$anchorCell.nodeAfter.attrs.colspan,e+=this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,e)===t.width},l.prototype.eq=function(t){return t instanceof l&&t.$anchorCell.pos===this.$anchorCell.pos&&t.$headCell.pos===this.$headCell.pos},l.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},l.prototype.getBookmark=function(){return new r(this.$anchorCell.pos,this.$headCell.pos)},l);function l(t,e){void 0===e&&(e=t);var o=this,n=t.node(-1),i=g.TableMap.get(n),r=t.start(-1),a=i.rectBetween(t.pos-r,e.pos-r),l=t.node(0),a=i.cellsInRect(a).filter(function(t){return t!==e.pos-r});a.unshift(e.pos-r);a=a.map(function(t){var e=n.nodeAt(t),t=t+r+1;return new h.SelectionRange(l.resolve(t),l.resolve(t+e.content.size))});return(o=d.call(this,a[0].$from,a[0].$to,a)||this).$anchorCell=t,o.$headCell=e,o}(e.CellSelection=i).prototype.visible=!1,h.Selection.jsonID("table_cell",i);var r=(a.prototype.map=function(t){return new a(t.map(this.anchor),t.map(this.head))},a.prototype.resolve=function(t){var e=t.resolve(this.anchor),t=t.resolve(this.head);return"row"===e.parent.type.spec.tableRole&&"row"===t.parent.type.spec.tableRole&&e.index()<e.parent.childCount&&t.index()<t.parent.childCount&&_.inSameTable(e,t)?new i(e,t):h.Selection.near(t,1)},a);function a(t,e){this.anchor=t,this.head=e}},function(t,g,e){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=e(7),a=e(10),l=e(21),_=e(34);g.findParentNodeClosestToPos=function(t,e){for(var o=t.depth;0<o;o--){var n=t.node(o);if(e(n))return{start:t.start(o),pos:0<o?t.before(o):0,depth:o,node:n}}},g.createTable=function(t,e,o){for(var n=t.table,i=t.table_body,r=t.table_row,a=t.table_cell,l=[],d=0;d<e+1;d++){for(var s=[],c=0;c<o+1;c++)s.push(a.createAndFill());l.push(r.createAndFill(void 0,s))}i=i.createAndFill(void 0,l);return n.createAndFill(void 0,i)},g.isInTable=function(t){for(var e=t.selection.$head,o=e.depth;0<o;o--)if(a.isTableRow(e.node(o)))return!0;return!1},g.setAttr=function(t,e,o){var n,i={};for(n in t)i[n]=t[n];return i[e]=o,i};function b(t){for(var e=t.depth-1;0<e;e--)if(a.isTableRow(t.node(e)))return t.node(0).resolve(t.before(e+1));return null}g.selectedRect=function(t){var e,o=(e=t)instanceof _.CellSelection&&e.$anchorCell?e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell:e instanceof r.NodeSelection&&e.node&&a.isTableCell(e.node)?e.$anchor:b(e.$head)||function(t){for(var e=t.nodeAfter,o=t.pos;e;e=e.firstChild,o++)if("cell"===(n=e.type.spec.tableRole)||"header_cell"===n)return t.doc.resolve(o);for(var n,i=t.nodeBefore,o=t.pos;i;i=i.lastChild,o--)if("cell"===(n=i.type.spec.tableRole)||"header_cell"===n)return t.doc.resolve(o-i.nodeSize)}(e.$head),n=o.node(-1),i=o.start(-1),e=l.TableMap.get(n),o=t instanceof _.CellSelection?e.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):e.findCell(o.pos-i);return o.tableStart=i,o.map=e,o.table=n,o},g.tableNodeTypes=function(t){var e=t.cached.tableNodeTypes;if(!e)for(var o in e=t.cached.tableNodeTypes={},t.nodes){var n=t.nodes[o],o=n.spec.tableRole;o&&(e[o]=n)}return e},g.rowIsHeader=function(t,e,o){for(var n=g.tableNodeTypes(e.type.schema).header_cell,i=0;i<t.width;i++)if(e.nodeAt(t.map[i+o*t.width]).type!==n)return!1;return!0},g.addColSpan=function(t,e,o){var n=g.setAttr(t,"colspan",t.colspan+(o=void 0===o?1:o));if(n.colwidth){n.colwidth=n.colwidth.slice();for(var i=0;i<o;i++)n.colwidth.splice(e,0,0)}return n},g.removeColSpan=function(t,e,o){t=g.setAttr(t,"colspan",t.colspan-(o=void 0===o?1:o));return t.colwidth&&(t.colwidth=t.colwidth.slice(),t.colwidth.splice(e,o),t.colwidth.some(function(t){return 0<t})||(t.colwidth=null)),t},g.isCellEmpty=function(t){t=t.content;return 1===t.childCount&&t.firstChild.isTextblock&&0===t.firstChild.childCount},g.splitCellWithType=function(h){return function(t,e){var o,n,i=t.selection;if(i instanceof _.CellSelection){if(i.$anchorCell.pos!==i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,n=i.$anchorCell.pos}else{if(!(o=function(t){for(var e=t.depth;0<e;e--){var o=t.node(e).type.spec.tableRole;if("cell"===o||"header_cell"===o)return t.node(e)}return null}(i.$from)))return!1;n=b(i.$from).pos}if(1===o.attrs.colspan&&1===o.attrs.rowspan)return!1;if(e){var r=o.attrs,a=[],l=r.colwidth;1<(r=1<r.rowspan?g.setAttr(r,"rowspan",1):r).colspan&&(r=g.setAttr(r,"colspan",1));for(var d=g.selectedRect(t),s=t.tr,c=0;c<d.right-d.left;c++)a.push(l?g.setAttr(r,"colwidth",l&&l[c]?[l[c]]:null):r);for(var p=void 0,u=d.top;u<d.bottom;u++){var m=d.map.positionAt(u,d.left,d.table);u===d.top&&(m+=o.nodeSize);for(var f=d.left,c=0;f<d.right;f++,c++)f===d.left&&u===d.top||s.insert(p=s.mapping.map(m+d.tableStart,1),h({node:o,row:u,col:f}).createAndFill(a[c]))}s.setNodeMarkup(n,h({node:o,row:d.top,col:d.left}),a[0]),i instanceof _.CellSelection&&s.setSelection(new _.CellSelection(s.doc.resolve(i.$anchorCell.pos),p&&s.doc.resolve(p))),e(s)}return!0}},g.pointsAtCell=function(t){return a.isTableRow(t.parent)&&t.nodeAfter},g.inSameTable=function(t,e){return t.depth===e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)},g.cellsOverlapRectangle=function(t,e){for(var o=t.width,n=t.height,i=t.map,r=e.top*o+e.left,a=r,l=(e.bottom-1)*o+e.left,d=r+(e.right-e.left-1),s=e.top;s<e.bottom;s++){if(0<e.left&&i[a]===i[a-1]||e.right<o&&i[d]===i[d+1])return!0;a+=o,d+=o}for(s=e.left;s<e.right;s++){if(0<e.top&&i[r]===i[r-o]||e.bottom<n&&i[l]===i[l+o])return!0;r++,l++}return!1}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(90),r=o(7);e.Schema=r.Schema;var a=o(89),o=r.marks,i=Object.assign(r.nodes,a.tableNodes,i.semanticNodes);e.schema=new r.Schema({marks:o,nodes:n.__assign({},i,{blockquote:n.__assign({},i.blockquote,{content:"inline*"})})})},function(t,e){t.exports=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),s.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,n.prototype.clickHandler.call(this)},i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"selectAll",t,e,o)||this}e.EditorSelectAllButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),s=o(2),c=o(30),s=(n=d.EditorCommandButton,i.__extends(p,n),p.prototype.ngAfterViewInit=function(){if(r.isDevMode&&!this.editor.iframe)throw new Error(c.EditorErrorMessages.printTool)},p.prototype.clickHandler=function(){var t;!this.editor.iframe||(t=(t=(t=(t=this.editor.view)&&t.dom)&&t.ownerDocument)&&t.defaultView)&&t.print()},i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,s.EditorLocalizationService])],p));function p(t,e,o){o=n.call(this,"print",t,e,o)||this;return o.editor=e,o}e.EditorPrintDirective=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),o=o(1),o=(i.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.hostEl.nativeElement.addEventListener("pointerdown",t.preventDefault)})},i.prototype.ngOnDestroy=function(){this.hostEl.nativeElement.removeEventListener("pointerdown",this.preventDefault)},n.__decorate([o.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],i));function i(t,e){this.hostEl=t,this.zone=e,this.preventDefault=function(t){t.preventDefault()}}e.DropDownToolDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(9),o=o(23),l=(n=o.Messages,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-editor-messages",template:""}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(t){var e=n.call(this)||this;return e.service=t,e}e.CustomMessagesComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(0),a=o(1),l=o(9),o=o(23),l=(n=o.Messages,r.__extends(d,n),i=d,i=r.__decorate([a.Directive({providers:[{provide:o.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoEditorLocalizedMessages]"}),r.__metadata("design:paramtypes",[l.LocalizationService])],d));function d(t){var e=n.call(this)||this;return e.service=t,e}e.LocalizedMessagesDirective=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"splitCell",t,e,o)||this}e.EditorSplitCellButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"mergeCells",t,e,o)||this}e.EditorMergeCellsButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteTable",t,e,o)||this}e.EditorDeleteTableButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteRow",t,e,o)||this}e.EditorDeleteRowButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"deleteColumn",t,e,o)||this}e.EditorDeleteColumnButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addRowAfter",t,e,o)||this}e.EditorAddRowAfterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addRowBefore",t,e,o)||this}e.EditorAddRowBeforeButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addColumnAfter",t,e,o)||this}e.EditorAddColumnAfterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"addColumnBefore",t,e,o)||this}e.EditorAddColumnBeforeButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"cleanFormatting",t,e,o)||this}e.EditorCleanFormattingButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(17),a=o(16),r=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(t){this.colorPicker=t,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}e.EditorBackColorDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(17),a=o(16),r=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],l);function l(t){this.colorPicker=t,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}e.EditorForeColorDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(3),l=o(11),d=o(4),o=o(2),o=(n=l.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[d.ToolBarButtonComponent,a.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertFile",t,e,o)||this}e.EditorInsertFileButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"superscript",t,e,o)||this}e.EditorSuperscriptButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"subscript",t,e,o)||this}e.EditorSubscriptButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"strikethrough",t,e,o)||this}e.EditorStrikethroughButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"underline",t,e,o)||this}e.EditorUnderlineButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"italic",t,e,o)||this}e.EditorItalicButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"bold",t,e,o)||this}e.EditorBoldButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"viewSource",t,e,o)||this}e.EditorViewSourceButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertUnorderedList",t,e,o)||this}e.EditorInsertUnorderedListButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertOrderedList",t,e,o)||this}e.EditorInsertOrderedListButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"unlink",t,e,o)||this}e.EditorUnlinkButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"createLink",t,e,o)||this}e.EditorCreateLinkButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"outdent",t,e,o)||this}e.EditorOutdentButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"indent",t,e,o)||this}e.EditorIndentButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(11),o=o(2),o=(n=d.EditorCommandDialog,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"insertImage",t,e,o)||this}e.EditorInsertImageButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"undo",t,e,o)||this}e.EditorUndoButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"redo",t,e,o)||this}e.EditorRedoButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignJustify",t,e,o)||this}e.EditorAlignJustifyButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignRight",t,e,o)||this}e.EditorAlignRightButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignCenter",t,e,o)||this}e.EditorAlignCenterButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(0),r=o(1),a=o(4),l=o(3),d=o(5),o=o(2),o=(n=d.EditorCommandButton,i.__extends(s,n),i.__decorate([r.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.ToolBarButtonComponent,l.EditorComponent,o.EditorLocalizationService])],s));function s(t,e,o){return n.call(this,"alignLeft",t,e,o)||this}e.EditorAlignLeftButtonDirective=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),n=(Object.defineProperty(r.prototype,"message",{get:function(){var t=this.state,e=t.rows,t=t.cols;return"Create a "+(-1<e?e+1:"")+" "+(-1<t?"x":"")+" "+(-1<t?t+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),r.prototype.selected=function(t){var e=this.state,o=e.rows,n=e.cols,e=Math.floor(t/this.cols),t=t%this.cols;return e<=o&&t<=n},r.prototype.setState=function(t){var e=Math.floor(t/this.cols),t=t%this.cols;this.state={rows:e,cols:t}},r.prototype.resetState=function(){this.state={rows:-1,cols:-1}},r.prototype.insertTable=function(){this.cellClick.emit(this.state)},r.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"tableWizardClick",void 0),n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],r));function r(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}e.PopupTableGridComponent=n},function(t,e){t.exports=C},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,i=o(0),a=o(1),l=o(37),d=o(22),s=o(4),c=o(77),p=o(8),u=o(3),m=o(2),f=o(6),h=o(26),g=o(14),f=(r=s.ToolBarToolComponent,i.__extends(_,r),(n=_).prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(_.prototype,"outerWidth",{get:function(){if(this.element)return p.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),_.prototype.toggle=function(t){this.open=void 0===t?!this.open:t,this.destroyPopup(),this.open&&this.createPopup()},_.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:h.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor})},_.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},_.prototype.onCellClick=function(t){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",t)},_.prototype.canFocus=function(){return!this.disabled},_.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},_.prototype.handleKey=function(t){return t.keyCode===g.Keys.Space||t.keyCode===g.Keys.Enter||!(this.tabIndex=-1)},_.prototype.onTableWizardClick=function(){},_.prototype.createPopup=function(){var t="rtl"===this.editor.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:{horizontal:t,vertical:"bottom"},animate:!0,content:this.popupGridTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});t=this.popupRef.popupElement;t.style.width="190px",t.style.height="164px",t.setAttribute("dir",this.editor.direction)},_.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},_.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},i.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"toolbarTemplate",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("element",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"element",void 0),i.__decorate([a.ViewChild("overflowElement",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"overflowElement",void 0),i.__decorate([a.ViewChild("popupGridTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],_.prototype,"popupGridTemplate",void 0),n=i.__decorate([a.Component({providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="toggle()"\n (blur)="onBlur()"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="openDialog()">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>\n </ng-template>\n '}),i.__param(0,a.Host()),i.__metadata("design:paramtypes",[u.EditorComponent,m.EditorLocalizationService,c.PopupService,f.DialogService])],_));function _(t,e,o,n){var i=r.call(this)||this;return i.editor=t,i.localization=e,i.popupService=o,i.dialogService=n,i.open=!1,i.buttonBlurred=new a.EventEmitter,i.cellClicked=new a.EventEmitter,i.subs=i.editor.stateChange.subscribe(function(t){t=t.insertTable;i.disabled=t.disabled}),i.subs.add(i.buttonBlurred.pipe(d.concatMap(function(){return l.interval(200).pipe(d.take(1),d.takeUntil(i.cellClicked))})).subscribe(function(){i.toggle(!1)})),i}e.EditorInsertTableButtonComponent=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(8),s=o(3),c=o(2),p=o(6),u=o(27),o=o(19),c=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontFamilyDropDownList||e.fontFamilyDropDownList.dropDownList.isOpen)||null===t.dataItem.fontName},setTimeout(function(){return e.defaultItem={text:e.title,fontName:null}}),this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.value=d.getUniqueStyleValues(t.selected,"font-family")||null,e.disabled=t.disabled})},m.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("fontFamily",e),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.fontName===e})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontFamilyButton.nativeElement:this.fontFamilyDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("element",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"element",void 0),r.__decorate([a.ViewChild("element",{read:o.FontFamilyDropDownListComponent,static:!1}),r.__metadata("design:type",o.FontFamilyDropDownListComponent)],m.prototype,"fontFamilyDropDownList",void 0),r.__decorate([a.ViewChild("fontFamilyButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"fontFamilyButton",void 0),n=r.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],n}e.EditorFontFamilyComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(8),s=o(3),c=o(2),p=o(6),u=o(25),o=o(18),c=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontSizeDropDownList||e.fontSizeDropDownList.dropDownList.isOpen)||null===t.dataItem.size},setTimeout(function(){return e.defaultItem={text:e.title,size:null}}),this.subs=this.editor.stateChange.subscribe(function(t){t=t.style;e.value=(d.getUniqueStyleValues(t.selected,"font-size").match(/\d+/g)||[null])[0],e.disabled=t.disabled})},m.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("fontSize",e),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.size===parseInt(e,10)})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){if(this.element)return d.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.fontSizeButton.nativeElement:this.fontSizeDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("element",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"element",void 0),r.__decorate([a.ViewChild("element",{read:o.FontSizeDropDownListComponent,static:!1}),r.__metadata("design:type",o.FontSizeDropDownListComponent)],m.prototype,"fontSizeDropDownList",void 0),r.__decorate([a.ViewChild("fontSizeButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"fontSizeButton",void 0),n=r.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[s.EditorComponent,p.DialogService,c.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._data=[{text:"8px",size:8},{text:"10px",size:10},{text:"12px",size:12},{text:"14px",size:14},{text:"18px",size:18},{text:"24px",size:24},{text:"36px",size:36}],n}e.EditorFontSizeComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(0),a=o(1),l=o(4),d=o(6),s=o(8),c=o(3),p=o(2),u=o(29),o=o(20),p=(i=l.ToolBarToolComponent,r.__extends(m,i),n=m,Object.defineProperty(m.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var o=this;this.itemDisabled=function(t){return!(o.overflows||!o.formatDropDownList||o.formatDropDownList.dropDownList.isOpen)||null===t.dataItem.tag},setTimeout(function(){return o.defaultItem={text:o.title,tag:null}}),this.subs=this.editor.stateChange.subscribe(function(t){var e=t.format,t=o.data.findIndex(function(t){return t.tag===e.selected.tag});o.value=-1!==t?e.selected.tag:null,o.disabled=e.disabled})},m.prototype.onValueChange=function(e){s.isPresent(e)&&(this.editor.exec("format",{tag:e}),this.editor.view.focus(),this.valueChange.emit(this.data.find(function(t){return t.tag===e})))},m.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(m.prototype,"outerWidth",{get:function(){var t=this.formatDropDownList.element;if(t)return s.outerWidth(t.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),m.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:u.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},m.prototype.canFocus=function(){return!this.disabled},m.prototype.focus=function(){this.tabindex=0,(this.overflows?this.formatButton.nativeElement:this.formatDropDownList).focus()},m.prototype.handleKey=function(){return!(this.tabindex=-1)},r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],m.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],m.prototype,"valueChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],m.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("formatDropDownList",{static:!1}),r.__metadata("design:type",o.FormatDropDownListComponent)],m.prototype,"formatDropDownList",void 0),r.__decorate([a.ViewChild("formatButton",{static:!1}),r.__metadata("design:type",a.ElementRef)],m.prototype,"formatButton",void 0),n=r.__decorate([a.Component({providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),r.__param(0,a.Host()),r.__metadata("design:paramtypes",[c.EditorComponent,d.DialogService,p.EditorLocalizationService])],m));function m(t,e,o){var n=i.call(this)||this;return n.editor=t,n.dialogService=e,n.localization=o,n.disabled=!1,n.tabindex=-1,n.valueChange=new a.EventEmitter,n._data=[{text:"Paragraph",tag:"p"},{text:"Quotation",tag:"blockquote"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],n}e.EditorFormatComponent=p},function(t,e){t.exports=f},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(83),a=o(15),l=o(4),d=o(13),s=o(6),c=o(82),p=o(12),u=o(12),m=o(3),f=o(32),h=o(33),g=o(31),_=o(29),b=o(28),v=o(27),y=o(26),C=o(81),k=o(80),w=o(79),E=o(17),x=o(78),T=o(76),D=o(75),S=o(74),B=o(73),I=o(72),A=o(71),O=o(70),M=o(69),z=o(68),L=o(67),P=o(66),F=o(65),R=o(64),j=o(63),W=o(62),H=o(61),V=o(60),N=o(59),$=o(58),U=o(57),J=o(56),K=o(55),G=o(54),q=o(53),Z=o(52),X=o(51),Q=o(50),Y=o(49),tt=o(48),et=o(47),ot=o(46),nt=o(45),it=o(44),rt=o(43),at=o(42),lt=o(41),dt=o(20),st=o(19),ct=o(18),pt=o(25),ut=o(40),mt=o(39),o=o(38),o=[D.EditorAlignLeftButtonDirective,S.EditorAlignCenterButtonDirective,B.EditorAlignRightButtonDirective,I.EditorAlignJustifyButtonDirective,K.EditorInsertFileButtonDirective,A.EditorRedoButtonDirective,O.EditorUndoButtonDirective,M.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,L.EditorOutdentButtonDirective,P.EditorCreateLinkButtonDirective,F.EditorUnlinkButtonDirective,R.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,W.EditorViewSourceButtonDirective,H.EditorBoldButtonDirective,V.EditorItalicButtonDirective,N.EditorUnderlineButtonDirective,$.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,J.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,q.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,tt.EditorAddRowAfterButtonDirective,et.EditorDeleteColumnButtonDirective,ot.EditorDeleteRowButtonDirective,nt.EditorDeleteTableButtonDirective,it.EditorMergeCellsButtonDirective,rt.EditorSplitCellButtonDirective,lt.CustomMessagesComponent,at.LocalizedMessagesDirective,ut.DropDownToolDirective,mt.EditorPrintDirective,o.EditorSelectAllButtonDirective],x=[k.EditorFontSizeComponent,w.EditorFontFamilyComponent,C.EditorFormatComponent,E.EditorColorPickerComponent,x.EditorInsertTableButtonComponent],y=[g.FileLinkDialogComponent,f.ImageDialogComponent,h.SourceDialogComponent,_.FormatDialogComponent,b.ColorPickerDialogComponent,v.FontFamilyDialogComponent,pt.FontSizeDialogComponent,y.InsertTableDialogComponent],ct=[T.PopupTableGridComponent,dt.FormatDropDownListComponent,st.FontFamilyDropDownListComponent,ct.FontSizeDropDownListComponent],u=n.__decorate([i.NgModule({declarations:[m.EditorComponent,o,x,y,ct],entryComponents:[y],exports:[m.EditorComponent,o,x,l.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,ct],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,p.ColorPickerModule,s.DialogModule,d.DropDownsModule,u.NumericTextBoxModule,l.ToolBarModule,u.TextBoxModule]})],ft);function ft(){}e.EditorModule=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n padding: 8px;\n}\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\ndiv.ProseMirror {\n position: relative;\n min-height: 100%;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\ndiv.ProseMirror:focus {\n outline: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror li {\n position: relative;\n}\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* image resizing */\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',e.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px;\n top: 0;\n bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',e.rtlStyles="body { direction: rtl }"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(7),i=o(7);e.getToolbarState=function(e,o){return{alignCenter:{selected:i.isAligned(e,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(e,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(e,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(e,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(e,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(e)},format:{selected:i.activeNode(e),disabled:!1},indent:{selected:!1,disabled:!(i.canIndentAsListItem(e,e.schema.nodes.list_item)||i.canBeIndented(e,i.indentRules))},insertOrderedList:{selected:i.hasNode(e,e.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(e,e.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(e,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(e,i.link)},outdent:{selected:!1,disabled:!(i.canOutdentAsListItem(e,i.outdentRules)||i.canBeIndented(e,i.outdentRules))},redo:{selected:!1,disabled:!i.redo(e)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:i.hasMark(e,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(e,e.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(e,i.subscript),disabled:!1},superscript:{selected:i.hasMark(e,i.superscript),disabled:!1},underline:{selected:i.hasMark(e,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(e)},createLink:{selected:!1,get disabled(){var t=e.selection.empty;return o&&o.applyToWord&&t?i.expandSelection(e,function(){},o).state.selection.empty:t}},insertFile:{selected:!1,disabled:e.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},print:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!i.addColumnBefore(e)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(e)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(e)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(e)},deleteRow:{selected:!1,disabled:!i.deleteRow(e)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(e)},mergeCells:{selected:!1,disabled:!i.mergeCells(e)},splitCell:{selected:!1,disabled:!i.splitCell(e)},deleteTable:{selected:!1,disabled:!i.deleteTable(e)}}},e.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},e.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var f=e(7),h=e(35),g=e(10),c=e(21),_=e(34);r.insertTable=function(n){return function(t,e){var o=h.createTable(t.schema.nodes,n.rows,n.cols);o&&f.insertNode(o,!0)(t,e)}};function a(t,e,o,i,r,a){var l,d=e.left,s=e.right,n=0<o?-1:0;if(i.node.descendants(function(t,o){var n;r(t)&&(n=-1,t.firstChild.descendants(function(t,e){!g.isTableCell(t)&&!g.isTableHeaderCell(t)||(n+=1)!==s&&n!==d||(e=new f.Selection(a.resolve(e+o+i.start),a.resolve(e+o+i.start)),l=h.selectedRect(e))}))}),!l)return t;for(var c=0;c<l.map.height;c++){var p,u,m=c*l.map.width+o;0<o&&o<l.map.width&&l.map.map[m-1]===l.map.map[m]?(u=l.map.map[m],p=l.table.nodeAt(u),t.setNodeMarkup(t.mapping.map(l.tableStart+u),null,h.addColSpan(p.attrs,o-l.map.colCount(u))),c+=p.attrs.rowspan-1):(m=l.table.nodeAt(l.map.map[m+n]).type,u=l.map.positionAt(c,o,l.table),t.insert(t.mapping.map(l.tableStart+u),m.createAndFill()))}return t}function i(t,e,i,r,a){var l,d=e.right,s=e.left;if(i.node.descendants(function(t,o){var n;r(t)&&(n=-1,t.firstChild.descendants(function(t,e){(g.isTableCell(t)||g.isTableHeaderCell(t))&&(n+=1)>=s&&n<d&&(t=a.resolve(e+o+i.start+t.nodeSize),t=new f.Selection(t,t),l=h.selectedRect(t))}))}),l)for(var o=l.right-1;function(t,e,o){for(var n=e.map,i=e.table,r=e.tableStart,a=0;a<n.height;){var l=a*n.width+o,d=n.map[l],s=i.nodeAt(d);if(o>0&&n.map[l-1]===d||o<n.width-1&&n.map[l+1]===d)t.setNodeMarkup(t.mapping.map(r+d),null,h.removeColSpan(s.attrs,o-n.colCount(d)));else{var c=t.mapping.map(r+d);t.delete(c,c+s.nodeSize)}a+=s.attrs.rowspan}}(t,l,o),o!==l.left;o--)l.table=l.tableStart?t.doc.nodeAt(l.tableStart-1):t.doc,l.map=c.TableMap.get(l.table)}r.addColumnBefore=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),i=a(t.tr,o,o.left,n,g.isTableHead,t.doc),i=a(i,o,o.left,n,g.isTableBody,t.doc),e(a(i,o,o.left,n,g.isTableFoot,t.doc))),!0);var o,n,i},r.addColumnAfter=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),i=a(t.tr,o,o.right,n,g.isTableHead,t.doc),i=a(i,o,o.right,n,g.isTableBody,t.doc),e(a(i,o,o.right,n,g.isTableFoot,t.doc))),!0);var o,n,i};function n(t,e,o){for(var n=e.map,i=e.tableStart,r=e.table,a=i,l=0;l<o;l++)a+=r.child(l).nodeSize;var d=[],s=0<o?-1:0;h.rowIsHeader(n,r,o+s)&&(s=0===o||o===n.height?null:0);for(var c,p,u=0,m=n.width*o;u<n.width;u++,m++)0<o&&o<n.height&&n.map[m]===n.map[m-n.width]?(c=n.map[m],p=r.nodeAt(c).attrs,t.setNodeMarkup(i+c,null,h.setAttr(p,"rowspan",p.rowspan+1)),u+=p.colspan-1):(p=null==s?h.tableNodeTypes(r.type.schema).cell:r.nodeAt(n.map[m+s*n.width]).type,d.push(p.createAndFill()));return t.insert(a,h.tableNodeTypes(r.type.schema).row.create(null,d)),t}r.addRowBefore=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),e(n(t.tr,o,o.top))),!0);var o},r.addRowAfter=function(t,e){return!!h.isInTable(t)&&(e&&(o=h.selectedRect(t.selection),e(n(t.tr,o,o.bottom))),!0);var o},r.deleteColumn=function(t,e){if(!h.isInTable(t))return!1;if(e){var o=h.selectedRect(t.selection);if(0===o.left&&o.right===o.map.width)return r.deleteTable(t,e);var n=h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable),t=t.tr;i(t,o,n,g.isTableFoot,t.doc),i(t,o,n,g.isTableBody,t.doc),i(t,o,n,g.isTableHead,t.doc),e(t)}return!0};r.deleteRow=function(t,e){if(!h.isInTable(t))return!1;if(e){var o=h.selectedRect(t.selection),n=t.tr;if(0===o.top&&o.bottom===o.map.height)return 1===h.findParentNodeClosestToPos(t.selection.$anchor,g.isTable).node.childCount?r.deleteTable(t,e):l(function(t){return t.type.name===o.table.type.name})(t,e),!0;for(var i=o.bottom-1;function(t,e,o){for(var n=e.map,i=e.table,r=e.tableStart,a=0,l=0;l<o;l++)a+=i.child(l).nodeSize;var e=a+i.child(o).nodeSize,d=t.mapping.maps.length;t.delete(a+r,e+r);for(var s=0,c=o*n.width;s<n.width;s++,c++){var p,u,m=n.map[c];0<o&&m===n.map[c-n.width]?(u=i.nodeAt(m).attrs,t.setNodeMarkup(t.mapping.slice(d).map(m+r),null,h.setAttr(u,"rowspan",u.rowspan-1)),s+=u.colspan-1):o<n.width&&m===n.map[c+n.width]&&(u=(p=i.nodeAt(m)).type.create(h.setAttr(p.attrs,"rowspan",p.attrs.rowspan-1),p.content),m=n.positionAt(o+1,s,i),t.insert(t.mapping.slice(d).map(r+m),u),s+=p.attrs.colspan-1)}}(n,o,i),i!==o.top;i--)o.table=o.tableStart?n.doc.nodeAt(o.tableStart-1):n.doc,o.map=c.TableMap.get(o.table);e(n)}return!0},r.mergeCells=function(t,e){var o=t.selection;if(!(o instanceof _.CellSelection)||o.$anchorCell.pos===o.$headCell.pos)return!1;var n=h.selectedRect(t.selection),i=n.map;if(h.cellsOverlapRectangle(i,n))return!1;if(e){for(var r=t.tr,a={},l=f.Fragment.empty,d=void 0,s=void 0,c=n.top;c<n.bottom;c++)for(var p=n.left;p<n.right;p++){var u=i.map[c*i.width+p],m=n.table.nodeAt(u);a[u]||(a[u]=!0,null===d?(d=u,s=m):(h.isCellEmpty(m)||(l=l.append(m.content)),u=r.mapping.map(u+n.tableStart),r.delete(u,u+m.nodeSize)))}r.setNodeMarkup(d+n.tableStart,null,h.setAttr(h.addColSpan(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),"rowspan",n.bottom-n.top)),l.size&&(o=d+1+s.content.size,t=h.isCellEmpty(s)?d+1:o,r.replaceWith(t+n.tableStart,o+n.tableStart,l)),r.setSelection(new _.CellSelection(r.doc.resolve(d+n.tableStart))),e(r)}return!0},r.splitCell=function(t,e){var o=h.tableNodeTypes(t.schema);return h.splitCellWithType(function(t){t=t.node;return o[t.type.spec.tableRole]})(t,e)};var l=function(r){return function(t,e){for(var o=t.selection.$anchor,n=o.depth;0<n;n--){var i=o.node(n);if(r(i))return e&&((i=t.tr).delete(o.before(n),o.after(n)).scrollIntoView(),e(i)),!0}return!1}};r.deleteTable=l(g.isTable)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t,e){return r.alignBlocks(r.alignRemoveRules)(t,e)}var i=o(0),r=o(7),a=o(87);e.editorCommands=Object.assign({},{bold:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.bold,{applyToWord:t}))},cleanFormatting:function(t){return r.cleanFormatting(t)},createLink:function(t){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:t.value,applyToWord:t.applyToWord})},fontFamily:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-family",value:t.value,applyToWord:t.applyToWord})},fontSize:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"font-size",value:t.value+"px",applyToWord:t.applyToWord})},insertFile:function(t){return r.expandToWordWrap(r.applyLink,{mark:"link",attrs:t,applyToWord:t.applyToWord})},insertText:function(t){return r.insertText(t)},italic:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.italic,{applyToWord:t}))},strikethrough:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.strikethrough,{applyToWord:t}))},subscript:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.subscript,{applyToWord:t}))},superscript:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.superscript,{applyToWord:t}))},underline:function(t){return r.expandToWordWrap(r.toggleInlineFormat,i.__assign({},r.underline,{applyToWord:t}))},unlink:function(){return r.removeLink(r.link)},foreColor:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"color",value:t.value,applyToWord:t.applyToWord})},backColor:function(t){return r.expandToWordWrap(r.applyInlineStyle,{style:"background-color",value:t.value,applyToWord:t.applyToWord})},selectAll:function(){return function(t,e){return r.selectAll(t,e)}}},{alignCenter:function(){return function(t,e){return(r.isAligned(t,r.alignCenterRules)?n:r.alignBlocks(r.alignCenterRules))(t,e)}},alignJustify:function(){return function(t,e){return(r.isAligned(t,r.alignJustifyRules)?n:r.alignBlocks(r.alignJustifyRules))(t,e)}},alignLeft:function(){return function(t,e){return(r.isAligned(t,r.alignLeftRules)?n:r.alignBlocks(r.alignLeftRules))(t,e)}},alignRight:function(){return function(t,e){return(r.isAligned(t,r.alignRightRules)?n:r.alignBlocks(r.alignRightRules))(t,e)}},format:function(t){return r.formatBlockElements(t.tag)},getHTML:function(){return r.getHtml},indent:function(){return r.indent},insertImage:function(t){return r.insertImage(t)},insertOrderedList:function(){return r.toggleOrderedList},insertUnorderedList:function(){return r.toggleUnorderedList},outdent:function(){return r.outdent},redo:function(){return r.redo},setHTML:function(t){var e=t.content,t=t.parseOptions;return r.setHtml(e,"setHTML",t)},undo:function(){return r.undo}},{insertTable:function(t){return a.insertTable(t)},addColumnBefore:function(){return a.addColumnBefore},addColumnAfter:function(){return a.addColumnAfter},addRowBefore:function(){return a.addRowBefore},addRowAfter:function(){return a.addRowAfter},deleteRow:function(){return a.deleteRow},deleteColumn:function(){return a.deleteColumn},mergeCells:function(){return a.mergeCells},splitCell:function(){return a.splitCell},deleteTable:function(){return a.deleteTable}})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){var e=i.__assign({},t);return 1!==t.colspan?e.colspan=t.colspan:e.colspan=null,1!==t.rowspan?e.rowspan=t.rowspan:e.rowspan=null,r.removeEmptyEntries(e)}var i=o(0),r=o(8),o=o(10);e.tableNodes={table:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["cellspacing","cellpadding"])),content:"(table_body | table_head | table_foot | table_colgroup)+",tableRole:"table",isolating:!0,group:"block",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"table"}],toDOM:function(t){return["table",r.removeEmptyEntries(t.attrs),0]}},table_row:{content:"(table_cell | table_header)*",attrs:i.__assign({},o.commonAttributes()),tableRole:"row",parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tr"}],toDOM:function(t){return["tr",r.removeEmptyEntries(t.attrs),0]}},table_cell:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"td"}],toDOM:function(t){return["td",n(t.attrs),0]}},table_header:{content:"block+",attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["headers","abbr","scope"]),{colspan:{default:1},rowspan:{default:1}}),tableRole:"header_cell",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"th"}],toDOM:function(t){return["th",n(t.attrs),0]}},table_body:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tbody"}],toDOM:function(t){return["tbody",r.removeEmptyEntries(t.attrs),0]}},table_foot:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"tfoot"}],toDOM:function(t){return["tfoot",r.removeEmptyEntries(t.attrs),0]}},table_head:{attrs:i.__assign({},o.commonAttributes()),content:"table_row+",isolating:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"thead"}],toDOM:function(t){return["thead",r.removeEmptyEntries(t.attrs),0]}},table_col:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),selectable:!1,atom:!0,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"col"}],toDOM:function(t){return["col",r.removeEmptyEntries(t.attrs)]}},table_colgroup:{attrs:i.__assign({},o.commonAttributes(),o.createDefaultAttributes(["span"])),content:"table_col*",selectable:!1,parseDOM:[{getAttrs:o.serializeDOMAttrs,tag:"colgroup"}],toDOM:function(t){return["colgroup",r.removeEmptyEntries(t.attrs),0]}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=o(10);e.semanticTagNames=["article","main","nav","header","footer","aside","section"],e.semanticNodes=e.semanticTagNames.reduce(function(t,e){var o;return Object.assign(t,((t={})[e]=(o=e,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:o,getAttrs:i.getAttributes}],toDOM:function(t){return i.hasAttrs(t.attrs)?[o,i.getAttrs(t.attrs),i.hole]:[o,i.hole]}}),t))},{})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1637743184,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e){t.exports=v},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3);e.EditorComponent=n.EditorComponent;n=o(84);e.EditorModule=n.EditorModule;n=o(36);e.schema=n.schema,e.Schema=n.Schema;o=o(7);e.EditorState=o.EditorState,e.Plugin=o.Plugin,e.PluginKey=o.PluginKey,e.Transaction=o.Transaction,e.EditorView=o.EditorView,e.Decoration=o.Decoration,e.DecorationSet=o.DecorationSet,e.NodeType=o.NodeType,e.Node=o.Node,e.MarkType=o.MarkType,e.Mark=o.Mark,e.InputRule=o.InputRule,e.inputRules=o.inputRules,e.wrappingInputRule=o.wrappingInputRule,e.textblockTypeInputRule=o.textblockTypeInputRule,e.keymap=o.keymap,e.baseKeymap=o.baseKeymap,e.history=o.history,e.dropCursor=o.dropCursor,e.gapCursor=o.gapCursor,e.tableNodes=o.tableNodes,e.getSelectionText=o.getSelectionText,function(t){for(var e in t)r(e,t[e])}(e)}],i={},n.m=o,n.c=i,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}}});
|