@progress/kendo-angular-editor 3.0.4-dev.202201311410 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cdn/main.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-toolbar","@progress/kendo-angular-dialog","@progress/kendo-editor-common","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@angular/forms","@progress/kendo-angular-dropdowns","rxjs","rxjs/operators","@progress/kendo-angular-inputs","@progress/kendo-licensing","@angular/common","@progress/kendo-angular-buttons","@progress/kendo-angular-popup"],t):"object"==typeof exports?exports.KendoAngularEditor=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):e.KendoAngularEditor=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-toolbar"],e["@progress/kendo-angular-dialog"],e["@progress/kendo-editor-common"],e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@angular/forms"],e["@progress/kendo-angular-dropdowns"],e.rxjs,e["rxjs/operators"],e["@progress/kendo-angular-inputs"],e["@progress/kendo-licensing"],e["@angular/common"],e["@progress/kendo-angular-buttons"],e["@progress/kendo-angular-popup"])}(window,(function(e,t,o,n,i,r,a,d,l,s,c,u,p,m,f,g){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=36)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=function(e){function t(t,o,n){return e.call(this,t,o,n)||this}return n.__extends(t,e),t=n.__decorate([n.__param(0,i.Inject(r.L10N_PREFIX)),n.__param(1,i.Optional()),n.__param(2,i.Optional()),n.__param(2,i.Inject(r.RTL)),n.__metadata("design:paramtypes",[String,r.MessageService,Boolean])],t)}(r.LocalizationService);t.EditorLocalizationService=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(15),d=o(16),l=o(4),s=o(7),c=o(10),u=o(8),p=o(37),m=o(38),f=o(23),g=o(41),h=o(43),_=o(9),b=o(24),v=o(25),y=o(26),k=o(11),C=o(2),w=o(44),E=o(27),x=o(5),T=o(28),D={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!0,removeMsClasses:!1,removeMsStyles:!1,stripTags:[]},S=_.conditionallyExecute(u.removeComments),B=_.conditionallyExecute(u.sanitize),I=function(e){if("all"===e.removeAttributes)return{"*":u.removeAttribute};var t=_.removeEmptyEntries({style:e.removeMsStyles?u.sanitizeStyleAttr:void 0,class:e.removeMsClasses?u.sanitizeClassAttr:void 0});return e.removeAttributes.reduce((function(e,t){var o;return n.__assign({},e,((o={})[t]=u.removeAttribute,o))}),t)},O=function(){function e(e,t,o,r,d,l){var s=this;this.dialogService=e,this.localization=t,this.cdr=o,this.ngZone=r,this.element=d,this.toolsService=l,this.iframe=!0,this.applyToWord=!1,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new i.EventEmitter,this.onFocus=new i.EventEmitter,this.paste=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.hostClass=!0,this.stateChange=new a.BehaviorSubject(h.initialToolBarState),this.valueModified=new a.Subject,this._readonly=!1,this._placeholder="",this.inForm=!1,this.afterViewInit=new a.Subject,this.contentAreaLoaded=new a.Subject,this.dispatchTransaction=function(e){var t=e.docChanged;if(!(s.disabled||s.readonly&&t)){if(t){var o=e.doc,n=u.getHtml({doc:o});s.trOnChange=e,s.htmlOnChange=n,s.ngZone.run((function(){s.valueModified.next(n)}))}t&&!s.inForm||s.view.updateState(s.view.state.apply(e))}},this.transformPastedHTML=function(e){var t=n.__assign({},D,s.pasteCleanupSettings),o=_.pipe(B(t.removeInvalidHTML),S(t.removeHtmlComments))(e),i=u.pasteCleanup(o,{convertMsLists:t.convertMsLists,stripTags:t.stripTags.join("|"),attributes:I(t)});if(c.hasObservers(s.paste)){var r=new T.EditorPasteEvent(i,e,s._pasteEvent);return s.ngZone.run((function(){return s.paste.emit(r)})),r.isDefaultPrevented()?"":r.cleanedHtml}return i},this.changeValue=function(e){var t=s._value;if(s._value=e,s._view){if(s.htmlOnChange===e&&s.trOnChange)s.view.updateState(s.view.state.apply(s.trOnChange));else if((t||"")!==(e||"")){if(s.iframe&&!s.container.element.nativeElement.contentWindow)return;var o=s.view.state,n=u.parseContent(e||"",o.schema,{preserveWhitespace:s.preserveWhitespace}),i=o.tr.setSelection(new u.AllSelection(o.doc)).replaceSelectionWith(n);s.view.updateState(o.apply(i))}s.trOnChange=null,s.htmlOnChange=null}},this.onChangeCallback=function(e){s.changeValue(e)},this.onTouchedCallback=function(e){},this.onPaste=function(e,t){return s._pasteEvent=t,!1},p.validatePackage(m.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.subs=a.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe((function(){return s.initialize()}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){if(this.trOnChange)return this.htmlOnChange;var e=this._view?this.getSource():this._value;return"<p></p>"===e?this._value?"":this._value:e},set:function(e){this.changeValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(h.disabledToolBarState):this.stateChange.next(h.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(e){if(this._readonly=e||!1,this._view){var t=void 0,o=(t=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode;this._view.dom.contains(o)&&t.getSelection().removeAllRanges();var n=this._view.state.doc,i=this._view.state.tr.setSelection(u.TextSelection.create(n,1));this._view.dispatch(i)}this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(h.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(h.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return this._schema},set:function(e){if(i.isDevMode){if(!(e instanceof u.Schema))throw new Error(E.EditorErrorMessages.schemaType);if(this._view)throw new Error(E.EditorErrorMessages.setSchemaOnce)}this._schema=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){return this._plugins},set:function(e){if(i.isDevMode){if("function"!=typeof e)throw new Error(E.EditorErrorMessages.pluginsCallbackType(e));if(this._view)throw new Error(E.EditorErrorMessages.setPluginsOnce)}this._plugins=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(i.isDevMode&&this._view)throw new Error(E.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIE",{get:function(){return this.iframe&&_.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){var e=this.resizable;return e.minWidth?e.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var e=this.resizable;return e.maxWidth?e.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){var e=this.resizable;return e.minHeight?e.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){var e=this.resizable;return e.maxHeight?e.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){return this._view&&this._view.state?u.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"}))),this.subs.add(this.toolsService.needsCheck.subscribe((function(){return e.cdr.markForCheck()})))},e.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},e.prototype.ngOnChanges=function(e){var t=this;e.value&&this.view&&this.changeValue(e.value.currentValue),e.iframe&&!e.iframe.isFirstChange()&&this.ngZone.onStable.pipe(d.take(1)).subscribe((function(){return t.initialize()})),e.resizable&&!e.resizable.isFirstChange()&&this.normalizeSize()},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},e.prototype.exec=function(e,t){"setHTML"===e&&"string"==typeof t?t={content:t,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some((function(t){return t===e}))&&(t={value:t,applyToWord:this.applyToWord}),g.editorCommands[e](t)(this._view.state,this._view.dispatch,this._view)},e.prototype.openDialog=function(e){var t={createLink:{content:y.FileLinkDialogComponent},insertFile:{content:y.FileLinkDialogComponent},insertImage:{content:v.ImageDialogComponent},viewSource:{content:b.SourceDialogComponent,height:400,width:500}},o=Object.assign({appendTo:this.dialogContainer},t[e]);this.toolbar.toggle(!1);var n=this.dialogService.open(o).content.instance;"createLink"!==e&&"insertFile"!==e||(n.command=e),n.editor=this,n.setData(this._view.state,{applyToWord:this.applyToWord})},e.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},e.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},e.prototype.getSource=function(){return u.getHtml(this._view.state)},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},e.prototype.writeValue=function(e){this.inForm=!0,this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.isEmpty=function(){return!1},e.prototype.initialize=function(){var e=this;if(c.isDocumentAvailable()){var t=this.schema||f.schema,o=this.container.element.nativeElement,n=u.parseContent((this.value||"").trim(),t,{preserveWhitespace:this.preserveWhitespace});if(this.iframe){var i=o.contentDocument,r=i.createElement("meta");r.setAttribute("charset","utf-8"),i.head.appendChild(r),[w.defaultStyle,w.tablesStyles,"rtl"===this.dir?w.rtlStyles:void 0].forEach((function(e){if(e){var t=i.createElement("style");t.appendChild(i.createTextNode(e)),i.head.appendChild(t)}}));var l=i.createElement("div");i.body.appendChild(l)}else{l=document.createElement("div");o.appendChild(l)}var s=[new u.Plugin({key:new u.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:e.readonly?"0":""}}}}),new u.Plugin({key:new u.PluginKey("toolbar-tools-update"),view:function(){return{update:function(t){e.disabled||e.stateChange.next(e.readonly?h.disabledToolBarState:h.getToolbarState(t.state,{applyToWord:e.applyToWord}))}}}}),u.history(),u.keymap(u.buildListKeymap(t)),u.keymap(u.buildKeymap(t,{applyToWord:this.applyToWord})),u.keymap(u.baseKeymap),u.gapCursor(),u.imageResizing(),u.tableEditing()];this.placeholder&&s.push(u.placeholder(this.placeholder));var p=u.EditorState.create({schema:t,doc:n,plugins:_.isPresent(this.plugins)?this.plugins(s):s});if(this.iframe?this.viewMountElement=o.contentDocument.querySelector("div"):this.viewMountElement=o.querySelector("div"),this.ngZone.runOutsideAngular((function(){e._view=new u.EditorView({mount:e.viewMountElement},{state:p,editable:function(){return!e.readonly},dispatchTransaction:e.dispatchTransaction,transformPastedHTML:e.transformPastedHTML,handleDOMEvents:{paste:e.onPaste}})})),this._view){var m=void 0,g=this.element.nativeElement.querySelector(".k-editor-content").classList;m=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(a.fromEvent(m,"focusin").subscribe((function(t){if(e.readonly&&g.add("k-focus"),!e.focusChangedProgrammatically||e.shouldEmitFocus){var o=t.relatedTarget;o&&o.classList.contains("k-colorpicker")&&!e.shouldEmitFocus||e.ngZone.run((function(){return e.onFocus.emit()})),e.shouldEmitFocus=!1}}))),this.subs.add(a.fromEvent(m,"focusout").subscribe((function(t){if(e.readonly&&g.remove("k-focus"),!e.focusChangedProgrammatically){var o=t.relatedTarget;o&&o.classList.contains("k-colorpicker")||e.ngZone.run((function(){return e.onBlur.emit()}))}})))}this.subs.add(this.stateChange.subscribe((function(){e.userToolBarComponent?e.userToolBarComponent.cdr.detectChanges():e.cdr.detectChanges()}))),this.subs.add(this.valueModified.subscribe((function(t){e.onChangeCallback(t),e.valueChange.emit(t),e.cdr.markForCheck()}))),this.subs.add(a.fromEvent(this.viewMountElement,"keyup").pipe(d.map((function(e){return e.keyCode})),d.filter((function(e){return 121===e})),d.map((function(){return e.userToolBarElement||e.defaultToolbar}))).subscribe((function(e){return e.nativeElement.focus()}))),this.subs.add(a.fromEvent(this.viewMountElement,"blur").pipe(d.filter((function(t){return!e.viewMountElement.contains(t.relatedTarget)}))).subscribe((function(){return e.onTouchedCallback()})))}},e.prototype.normalizeSize=function(){var e=this;if("object"==typeof this.resizable&&!this._styleObserver){var t=this.element.nativeElement;this._styleObserver=new MutationObserver((function(){e.ngZone.runOutsideAngular((function(){return e.normalizeProperties(t)}))})),this._styleObserver.observe(t,{attributeFilter:["style"]})}},e.prototype.normalizeProperties=function(e){var t=Object.keys(this.resizable),o=parseInt(e.style.width,10),n=parseInt(e.style.height,10),i=this.resizable;t.forEach((function(t){var r=t.startsWith("min"),a=!r,d=t.endsWith("Width"),l=!d;r&&d?o<i.minWidth&&(e.style.width=i.minWidth+"px"):r&&l?n<i.minHeight&&(e.style.height=i.minHeight+"px"):a&&d?o>i.maxWidth&&(e.style.width=i.maxWidth+"px"):n>i.maxHeight&&(e.style.height=i.maxHeight+"px")}))},n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"value",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"readonly",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"iframe",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"applyToWord",void 0),n.__decorate([i.Input(),n.__metadata("design:type",u.Schema),n.__metadata("design:paramtypes",[u.Schema])],e.prototype,"schema",null),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"plugins",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"preserveWhitespace",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"pasteCleanupSettings",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"resizable",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.Output("focus"),n.__metadata("design:type",i.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"paste",void 0),n.__decorate([i.Output("blur"),n.__metadata("design:type",i.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([i.HostBinding("class.k-editor"),n.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),n.__decorate([i.HostBinding("class.k-editor-resizable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"resizableClass",null),n.__decorate([i.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([i.HostBinding("class.k-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([i.HostBinding("class.k-ie"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isIE",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([i.HostBinding("attr.ariaDisabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),n.__decorate([i.HostBinding("style.minWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"minWidth",null),n.__decorate([i.HostBinding("style.maxWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"maxWidth",null),n.__decorate([i.HostBinding("style.minHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"minHeight",null),n.__decorate([i.HostBinding("style.maxHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"maxHeight",null),n.__decorate([i.ContentChild(l.ToolBarComponent,{static:!1}),n.__metadata("design:type",l.ToolBarComponent)],e.prototype,"userToolBarComponent",void 0),n.__decorate([i.ContentChild(l.ToolBarComponent,{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],e.prototype,"userToolBarElement",void 0),n.__decorate([i.ViewChild("dialogsContainer",{read:i.ViewContainerRef,static:!0}),n.__metadata("design:type",i.ViewContainerRef)],e.prototype,"dialogContainer",void 0),n.__decorate([i.ViewChild("content",{read:i.ViewContainerRef,static:!1}),n.__metadata("design:type",i.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([i.ViewChild("defaultToolbar",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],e.prototype,"defaultToolbar",void 0),n.__decorate([i.ViewChild("defaultToolbar",{read:l.ToolBarComponent,static:!1}),n.__metadata("design:type",l.ToolBarComponent)],e.prototype,"defaultToolbarComponent",void 0),e=t=n.__decorate([i.Component({selector:"kendo-editor",providers:[C.EditorLocalizationService,x.EditorToolsService,{provide:k.LocalizationService,useExisting:C.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:i.forwardRef((function(){return t}))}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-blockquote="kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote"\n blockquote="Quotation"\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 srcdoc="<!DOCTYPE html>" frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),n.__metadata("design:paramtypes",[s.DialogService,k.LocalizationService,i.ChangeDetectorRef,i.NgZone,i.ElementRef,x.EditorToolsService])],e)}();t.EditorComponent=O},function(e,t){e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(15),a=function(){function e(){this.needsCheck=new r.Subject}return e=n.__decorate([i.Injectable()],e)}();t.EditorToolsService=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n,i,r){var a=e.call(this,t,o,n,i,r)||this;return a.command=t,a.button=o,a.editor=n,a.localization=i,a.toolsService=r,a}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},t.prototype.pointerdownHandler=function(e){e.preventDefault()},t.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},t}(o(34).EditorCommandBase);t.EditorCommandButton=i},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(10);t.outerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t+=parseFloat(o.marginLeft)||0+parseFloat(o.marginRight)||0},t.removeEntries=function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,o){var n;return Object.assign(t,((n={})[o]=e[o],n))}),{})},t.removeEmptyEntries=function(e){return t.removeEntries(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))},t.isEmpty=function(e){return 0===Object.keys(e).length},t.isNullOrUndefined=function(e){return null==e},t.isPresent=function(e){return!t.isNullOrUndefined(e)},t.detectIE=function(){if(!n.isDocumentAvailable())return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),o=e.indexOf("Trident/");return t>0||o>0},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.unique=function(e){return Array.from(new Set(e))},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.toArray=function(e){return e instanceof Array?e:[e]},t.getUniqueStyleValues=function(e,o){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.safeString).map(t.split(";")).map(t.filter((function(e){return e.includes(o)}))).map((function(e){return 0!==e.length?e:[o+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return n.indexOf("INVALID")>-1||1!==n.length?"":n[0]},t.conditionallyExecute=function(e){return function(t){return function(o){return t?e(o):o}}},t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}},function(e,t){e.exports=r},function(e,t){e.exports=a},function(e,t){e.exports=d},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n,i,r){var a=e.call(this,t,o,n,i,r)||this;return a.dialog=t,a.button=o,a.editor=n,a.localization=i,a.toolsService=r,a}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},t.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},t}(o(34).EditorCommandBase);t.EditorCommandDialog=i},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FormatDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FontFamilyDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FontSizeDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(17),d=o(2),l=o(9),s=o(3),c=o(7),u=o(30),p=o(16),m=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r.editor=t,r.localization=o,r.dialogService=n,r.ngZone=i,r.tabindex=-1,r.disabled=!1,r.views=["palette"],r}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.disabled=o.disabled}))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},t.prototype.handleValueChange=function(e){this.editor.exec(this.editorCommand,e),this.editor.view.focus()},t.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.handleValueChange(e.color)},t.prototype.onOpen=function(e){this.valueCache=e.value,e.reset()},t.prototype.onClose=function(e){var t=this;e.value||(e.value=this.valueCache),this.editor.shouldEmitFocus=!0,this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return t.editor.view.focus()}))},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return l.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,views:this.views})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.colorPickerButton.nativeElement.focus():this.colorPicker.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"icon",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"paletteSettings",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"editorCommand",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Array)],t.prototype,"views",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"view",null),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("colorpicker",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("colorpicker",{read:a.ColorPickerComponent,static:!1}),n.__metadata("design:type",a.ColorPickerComponent)],t.prototype,"colorPicker",void 0),n.__decorate([i.ViewChild("colorPickerButton",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"colorPickerButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]="title"\n [icon]="icon"\n [views]="views"\n [format]="\'hex\'"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[s.EditorComponent,d.EditorLocalizationService,c.DialogService,i.NgZone])],t)}(r.ToolBarToolComponent);t.EditorColorPickerComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",blockquote:"blockquote",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(39),i=o(8);t.Schema=i.Schema;var r=i.marks,a=Object.assign(i.nodes,n.semanticNodes);t.schema=new i.Schema({marks:r,nodes:a})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data="",n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.textarea.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},t.prototype.getData=function(){return this.textarea.nativeElement.value},t.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.indent=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("textarea",{static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"textarea",void 0),t=n.__decorate([i.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.SourceDialogComponent=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(7),d=o(8),l=o(9),s=o(2),c=o(10),u=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.src=new r.FormControl("",r.Validators.required),n.alt=new r.FormControl(""),n.width=new r.FormControl("",r.Validators.min(1)),n.height=new r.FormControl("",r.Validators.min(1)),n.data={alt:"",height:"",src:"",width:""},n.imageData=new r.FormGroup({alt:n.alt,height:n.height,src:n.src,width:n.width}),n}return n.__extends(t,e),t.prototype.ngOnInit=function(){this.srcInputId="k-"+c.guid(),this.altTextInputId="k-"+c.guid(),this.widthInputId="k-"+c.guid(),this.heightInputId="k-"+c.guid()},t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.srcInput.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},t.prototype.setData=function(e){var t=d.getNodeFromSelection(e);t&&(this.src.patchValue(t.attrs.src),this.alt.patchValue(t.attrs.alt),this.width.patchValue(t.attrs.width),this.height.patchValue(t.attrs.height))},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},t.prototype.normalizeDimension=function(e){return Number.isNaN(parseInt(e,10))||parseInt(e,10)<=0?"":l.safeString(parseInt(e,10))},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("srcInput",{read:i.ElementRef,static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"srcInput",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox k-input k-rounded-md" />\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 k-input k-rounded-md" />\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 k-input k-rounded-md" />\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 k-input k-rounded-md" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[a.DialogRef,s.EditorLocalizationService])],t)}(a.DialogContentBase);t.ImageDialogComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(7),d=o(8),l=o(9),s=o(2),c=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.linkForm=new r.FormGroup({href:new r.FormControl("",r.Validators.required),text:new r.FormControl({value:"",disabled:!0},r.Validators.required),title:new r.FormControl("")}),n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.hrefInput.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){var e=this.getData();this.editor.exec(this.command,e),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(t.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),t.prototype.setData=function(e,t){"createLink"===this.command&&this.linkForm.addControl("target",new r.FormControl);var o=d.getMark(e,e.schema.marks.link);if(o)this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:l.isPresent(o.attrs.target),text:this.setLinkText(e)});else if(e.selection.empty){var n=t.applyToWord?d.expandSelection(e,(function(){}),t).state:e;n.selection.empty||this.linkForm.patchValue({text:d.getSelectionText(n)})}else this.linkForm.patchValue({text:d.getSelectionText(e)})},t.prototype.textForWithPrefix=function(e){var t="createLink"===this.command?"link":"file";return this.textFor(t+e)},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.setLinkText=function(e){var t=e.selection;if(t.empty&&t.$cursor){var o=t.$cursor,n=o.index();return o.parent.child(n).text}return d.getSelectionText(e)},t.prototype.getData=function(){var e=this.linkForm.value;return l.isPresent(this.linkForm.controls.target)&&(e.target=e.target?"_blank":null),e},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"command",void 0),n.__decorate([i.ViewChild("hrefInput",{read:i.ElementRef,static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"hrefInput",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />\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 k-input k-rounded-md" />\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 k-input k-rounded-md" />\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" kendoCheckBox formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[a.DialogRef,s.EditorLocalizationService])],t)}(a.DialogContentBase);t.FileLinkDialogComponent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(e){return"plugins must be a function, but received "+JSON.stringify(e)+"."},pastedContentCallbackType:function(e){return"pastedContent must be a function, but received "+JSON.stringify(e)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See https://www.telerik.com/kendo-angular-ui/components/editor/plugins/#toc-custom-plugins/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n){var i=e.call(this)||this;return i.cleanedHtml=t,i.originalHtml=o,i.originalEvent=n,i}return n.__extends(t,e),t}(o(10).PreventableEvent);t.EditorPasteEvent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(18),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.formatDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("formatDropDownList",{read:l.FormatDropDownListComponent,static:!0}),n.__metadata("design:type",l.FormatDropDownListComponent)],t.prototype,"formatDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FormatDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(17),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.colorPicker.focus()}))},t.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.value=e.color},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close(),this.editor.view.focus()},t.prototype.setData=function(e){this.editor=e.editor,this.value=e.value,this.editorCommand=e.editorCommand,this.paletteSettings=e.paletteSettings,this.icon=e.icon,this.views=e.view?[e.view]:e.views},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("colorpicker",{read:l.ColorPickerComponent,static:!0}),n.__metadata("design:type",l.ColorPickerComponent)],t.prototype,"colorPicker",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [views]="views"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.ColorPickerDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(19),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.fontFamilyDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("fontFamilyDropDownList",{read:l.FontFamilyDropDownListComponent,static:!0}),n.__metadata("design:type",l.FontFamilyDropDownListComponent)],t.prototype,"fontFamilyDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FontFamilyDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n}return n.__extends(t,e),t.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},t.prototype.onCellClick=function(e){this.dialog.close(),this.editor.exec("insertTable",e),this.editor.view.focus()},t.prototype.setData=function(e){this.editor=e.editor},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.InsertTableDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(20),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.fontSizeDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("fontSizeDropDownList",{read:l.FontSizeDropDownListComponent,static:!0}),n.__metadata("design:type",l.FontSizeDropDownListComponent)],t.prototype,"fontSizeDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FontSizeDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(22),i=function(){function e(e,t,o,i,r){var a=this;this.command=e,this.button=t,this.editor=o,this.localization=i,this.toolsService=r,setTimeout((function(){var e=a.localization.get(a.command);e&&(a.button.showText="overflow",a.button.showIcon="both",a.button.text=e),a.button.toolbarOptions.icon||(a.button.icon=n.commandIcons[a.command]),a.button.title=e,a.toolsService.needsCheck.next()}))}return e.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)))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},e.prototype.clickHandler=function(){},e.prototype.pointerdownHandler=function(e){},e.prototype.onStateChange=function(e){},e}();t.EditorCommandBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignCenter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignJustify",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignLeft",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignRight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"backColor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"blockquote",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"bold",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"cleanFormatting",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"createLink",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fontFamily",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fontSize",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"foreColor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"format",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"indent",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertFile",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertImage",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertOrderedList",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertUnorderedList",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"italic",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"outdent",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"print",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"redo",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"selectAll",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"strikethrough",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"subscript",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"superscript",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"underline",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"undo",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"unlink",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"viewSource",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertTable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addColumnBefore",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addColumnAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addRowBefore",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addRowAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteColumn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteRow",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteTable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogApply",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogCancel",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogInsert",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogUpdate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileWebAddress",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageAltText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageWebAddress",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkOpenInNewWindow",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkWebAddress",void 0),t}(o(11).ComponentMessages);t.Messages=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);t.EditorComponent=n.EditorComponent;var i=o(45);t.EditorModule=i.EditorModule;var r=o(23);t.schema=r.schema,t.Schema=r.Schema;var a=o(8);t.EditorState=a.EditorState,t.Plugin=a.Plugin,t.PluginKey=a.PluginKey,t.Transaction=a.Transaction,t.EditorView=a.EditorView,t.Decoration=a.Decoration,t.DecorationSet=a.DecorationSet,t.NodeType=a.NodeType,t.Node=a.Node,t.MarkType=a.MarkType,t.Mark=a.Mark,t.InputRule=a.InputRule,t.inputRules=a.inputRules,t.wrappingInputRule=a.wrappingInputRule,t.textblockTypeInputRule=a.textblockTypeInputRule,t.keymap=a.keymap,t.baseKeymap=a.baseKeymap,t.history=a.history,t.dropCursor=a.dropCursor,t.gapCursor=a.gapCursor,t.tableNodes=a.tableNodes,t.getSelectionText=a.getSelectionText;var d=o(28);t.EditorPasteEvent=d.EditorPasteEvent},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643637939,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(40);t.semanticTagNames=["article","main","nav","header","footer","aside","section"],t.semanticNodes=t.semanticTagNames.reduce((function(e,t){var o,r;return Object.assign(e,((o={})[t]=(r=t,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:r,getAttrs:i.getAttributes}],toDOM:function(e){return i.hasAttrs(e.attrs)?[r,i.getAttrs(e.attrs),i.hole]:[r,i.hole]}}),o))}),{})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);t.hasAttrs=function(e,t){for(var o in e)if(o&&null!==e[o]&&o!==t)return!0;return!1},t.getAttrs=function(e,t){var o={};for(var n in e)n&&null!==e[n]&&n!==t&&(o[n]=e[n]);return o},t.getAttributes=function(e){for(var t,o={},n=e.attributes,i=0;i<n.length;i++)o[(t=n[i]).name]=t.value;return o},t.serializeDOMAttrs=function(e){return Array.from(e.attributes).reduce((function(e,t){var o;return Object.assign({},e,((o={})[t.name]=t.value,o))}),{})},t.commonAttributes=function(){return n.__assign({},t.createDefaultAttributes(["class","id","style"]))},t.createDefaultAttributes=function(e){return void 0===e&&(e=[]),n.__assign({},e.reduce((function(e,t){var o;return n.__assign({},e,((o={})[t]={default:null},o))}),{}))},t.hole=0,t.isSchemaNode=function(e){return function(t){return t.type.name===e}},t.isTable=t.isSchemaNode("table"),t.isTableBody=t.isSchemaNode("table_body"),t.isTableHead=t.isSchemaNode("table_head"),t.isTableFoot=t.isSchemaNode("table_foot"),t.isTableRow=t.isSchemaNode("table_row"),t.isTableCell=t.isSchemaNode("table_cell"),t.isTableHeaderCell=t.isSchemaNode("table_header")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(8),r=o(42),a=function(e,t){return i.alignBlocks(i.alignRemoveRules)(e,t)},d={bold:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.bold,{applyToWord:e}))},cleanFormatting:function(e){return i.cleanFormatting(e)},createLink:function(e){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:e.value,applyToWord:e.applyToWord})},fontFamily:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-family",value:e.value,applyToWord:e.applyToWord})},fontSize:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-size",value:e.value+"px",applyToWord:e.applyToWord})},insertFile:function(e){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:e,applyToWord:e.applyToWord})},insertText:function(e){return i.insertText(e)},italic:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.italic,{applyToWord:e}))},strikethrough:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.strikethrough,{applyToWord:e}))},subscript:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.subscript,{applyToWord:e}))},superscript:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.superscript,{applyToWord:e}))},underline:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.underline,{applyToWord:e}))},unlink:function(){return i.removeLink(i.link)},foreColor:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"color",value:e.value,applyToWord:e.applyToWord})},backColor:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"background-color",value:e.value,applyToWord:e.applyToWord})},selectAll:function(){return function(e,t){return i.selectAll(e,t)}}},l={alignCenter:function(){return function(e,t){return i.isAligned(e,i.alignCenterRules)?a(e,t):i.alignBlocks(i.alignCenterRules)(e,t)}},alignJustify:function(){return function(e,t){return i.isAligned(e,i.alignJustifyRules)?a(e,t):i.alignBlocks(i.alignJustifyRules)(e,t)}},alignLeft:function(){return function(e,t){return i.isAligned(e,i.alignLeftRules)?a(e,t):i.alignBlocks(i.alignLeftRules)(e,t)}},alignRight:function(){return function(e,t){return i.isAligned(e,i.alignRightRules)?a(e,t):i.alignBlocks(i.alignRightRules)(e,t)}},format:function(e){return i.formatBlockElements(e.tag)},getHTML:function(){return i.getHtml},indent:function(){return i.indent},insertImage:function(e){return i.insertImage(e)},insertOrderedList:function(){return i.toggleOrderedList},insertUnorderedList:function(){return i.toggleUnorderedList},outdent:function(){return i.outdent},redo:function(){return i.redo},setHTML:function(e){var t=e.content,o=e.parseOptions;return i.setHtml(t,"setHTML",o)},undo:function(){return i.undo},blockquote:function(){return i.blockquote}},s={insertTable:function(e){return r.insertTable(e)},addColumnBefore:function(){return i.addColumnBefore},addColumnAfter:function(){return i.addColumnAfter},addRowBefore:function(){return i.addRowBefore},addRowAfter:function(){return i.addRowAfter},deleteRow:function(){return i.deleteRow},deleteColumn:function(){return i.deleteColumn},mergeCells:function(){return i.mergeCells},splitCell:function(){return i.splitCell},deleteTable:function(){return i.deleteTable}};t.editorCommands=Object.assign({},d,l,s)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8);t.insertTable=function(e){return function(t,o){var i=n.createTable(t.schema.nodes,e.rows,e.cols);i&&n.insertNode(i,!0)(t,o)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),i=o(8);t.getToolbarState=function(e,t){return{alignCenter:{selected:i.isAligned(e,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(e,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(e,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(e,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(e,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(e)},format:{selected:i.activeNode(e),disabled:!1},blockquote:{selected:!1,disabled:!n.blockquote(e)},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,get disabled(){return!(i.hasNode(e,e.schema.nodes.blockquote)||i.canOutdentAsListItem(e,i.outdentRules)||n.isIndented(e,i.outdentRules.nodes))}},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 o=e.selection.empty;return t&&t.applyToWord&&o?i.expandSelection(e,(function(){}),t).state.selection.empty:o}},insertFile:{selected:!1,disabled:e.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},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)}}},t.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!1},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},t.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n padding: 8px;\n}\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\ndiv.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\ndiv.ProseMirror:focus {\n outline: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror li {\n position: relative;\n}\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* image resizing */\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px;\n top: 0;\n bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(46),a=o(12),d=o(4),l=o(13),s=o(7),c=o(47),u=o(17),p=o(3),m=o(25),f=o(24),g=o(26),h=o(29),_=o(30),b=o(31),v=o(32),y=o(48),k=o(49),C=o(50),w=o(21),E=o(51),x=o(53),T=o(54),D=o(55),S=o(56),B=o(57),I=o(58),O=o(59),L=o(60),P=o(61),z=o(62),A=o(63),F=o(64),M=o(65),R=o(66),j=o(67),W=o(68),H=o(69),V=o(70),N=o(71),q=o(72),U=o(73),K=o(74),J=o(75),G=o(76),$=o(77),Z=o(78),X=o(79),Q=o(80),Y=o(81),ee=o(82),te=o(83),oe=o(84),ne=o(85),ie=o(86),re=o(87),ae=o(88),de=o(89),le=o(18),se=o(19),ce=o(20),ue=o(33),pe=o(90),me=o(91),fe=o(92),ge=[T.EditorAlignLeftButtonDirective,D.EditorAlignCenterButtonDirective,S.EditorAlignRightButtonDirective,B.EditorAlignJustifyButtonDirective,J.EditorInsertFileButtonDirective,O.EditorRedoButtonDirective,L.EditorUndoButtonDirective,P.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,A.EditorOutdentButtonDirective,F.EditorCreateLinkButtonDirective,M.EditorUnlinkButtonDirective,R.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,W.EditorViewSourceButtonDirective,H.EditorBoldButtonDirective,V.EditorItalicButtonDirective,N.EditorUnderlineButtonDirective,q.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,K.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,$.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,ee.EditorAddRowAfterButtonDirective,te.EditorDeleteColumnButtonDirective,oe.EditorDeleteRowButtonDirective,ne.EditorDeleteTableButtonDirective,ie.EditorMergeCellsButtonDirective,re.EditorSplitCellButtonDirective,de.CustomMessagesComponent,ae.LocalizedMessagesDirective,pe.DropDownToolDirective,me.EditorPrintDirective,fe.EditorSelectAllButtonDirective,I.EditorBlockquoteDirective],he=[k.EditorFontSizeComponent,C.EditorFontFamilyComponent,y.EditorFormatComponent,w.EditorColorPickerComponent,E.EditorInsertTableButtonComponent],_e=[g.FileLinkDialogComponent,m.ImageDialogComponent,f.SourceDialogComponent,h.FormatDialogComponent,_.ColorPickerDialogComponent,b.FontFamilyDialogComponent,ue.FontSizeDialogComponent,v.InsertTableDialogComponent],be=[x.PopupTableGridComponent,le.FormatDropDownListComponent,se.FontFamilyDropDownListComponent,ce.FontSizeDropDownListComponent],ve=function(){function e(){}return e=n.__decorate([i.NgModule({declarations:[p.EditorComponent,ge,he,_e,be],entryComponents:[_e],exports:[p.EditorComponent,ge,he,d.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,be],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,u.ColorPickerModule,s.DialogModule,l.DropDownsModule,u.NumericTextBoxModule,u.CheckBoxModule,d.ToolBarModule,u.TextBoxModule]})],e)}();t.EditorModule=ve},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(7),d=o(9),l=o(3),s=o(2),c=o(29),u=o(18),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._data=[{text:"Paragraph",tag:"p"},{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"}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.formatDropDownList||e.formatDropDownList.dropDownList.isOpen)||null===t.dataItem.tag},setTimeout((function(){e.defaultItem={text:e.title,tag:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.format,n=e.data.findIndex((function(e){return e.tag===o.selected.tag}));e.value=-1!==n?o.selected.tag:null,e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("format",{tag:e}),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.tag===e}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){var e=this.formatDropDownList.element;if(e)return d.outerWidth(e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.formatButton.nativeElement.focus():this.formatDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("formatDropDownList",{static:!1}),n.__metadata("design:type",u.FormatDropDownListComponent)],t.prototype,"formatDropDownList",void 0),n.__decorate([i.ViewChild("formatButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"formatButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[l.EditorComponent,a.DialogService,s.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFormatComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(9),d=o(3),l=o(2),s=o(7),c=o(33),u=o(20),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._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}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontSizeDropDownList||e.fontSizeDropDownList.dropDownList.isOpen)||null===t.dataItem.size},setTimeout((function(){e.defaultItem={text:e.title,size:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.value=(a.getUniqueStyleValues(o.selected,"font-size").match(/\d+/g)||[null])[0],e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){a.isPresent(e)&&(this.editor.exec("fontSize",e),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.size===parseInt(e,10)}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return a.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontSizeButton.nativeElement.focus():this.fontSizeDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:u.FontSizeDropDownListComponent,static:!1}),n.__metadata("design:type",u.FontSizeDropDownListComponent)],t.prototype,"fontSizeDropDownList",void 0),n.__decorate([i.ViewChild("fontSizeButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"fontSizeButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[d.EditorComponent,s.DialogService,l.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFontSizeComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(9),d=o(3),l=o(2),s=o(7),c=o(31),u=o(19),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._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"}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontFamilyDropDownList||e.fontFamilyDropDownList.dropDownList.isOpen)||null===t.dataItem.fontName},setTimeout((function(){e.defaultItem={text:e.title,fontName:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.value=a.getUniqueStyleValues(o.selected,"font-family")||null,e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){a.isPresent(e)&&(this.editor.exec("fontFamily",e),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.fontName===e}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return a.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontFamilyButton.nativeElement.focus():this.fontFamilyDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:u.FontFamilyDropDownListComponent,static:!1}),n.__metadata("design:type",u.FontFamilyDropDownListComponent)],t.prototype,"fontFamilyDropDownList",void 0),n.__decorate([i.ViewChild("fontFamilyButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"fontFamilyButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[d.EditorComponent,s.DialogService,l.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFontFamilyComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(15),a=o(16),d=o(4),l=o(52),s=o(9),c=o(3),u=o(2),p=o(7),m=o(32),f=o(10),g=function(e){function t(t,o,n,d){var l=e.call(this)||this;return l.editor=t,l.localization=o,l.popupService=n,l.dialogService=d,l.open=!1,l.buttonBlurred=new i.EventEmitter,l.cellClicked=new i.EventEmitter,l.subs=l.editor.stateChange.subscribe((function(e){var t=e.insertTable;l.disabled=t.disabled})),l.subs.add(l.buttonBlurred.pipe(a.concatMap((function(){return r.interval(200).pipe(a.take(1),a.takeUntil(l.cellClicked))}))).subscribe((function(){l.toggle(!1)}))),l}var o;return n.__extends(t,e),o=t,t.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return s.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),t.prototype.toggle=function(e){this.open=void 0===e?!this.open:e,this.destroyPopup(),this.open&&this.createPopup()},t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:m.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor})},t.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},t.prototype.onCellClick=function(e){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",e)},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},t.prototype.handleKey=function(e){return e.keyCode===f.Keys.Space||e.keyCode===f.Keys.Enter||(this.tabIndex=-1,!1)},t.prototype.onTableWizardClick=function(){},t.prototype.createPopup=function(){var e="rtl"===this.editor.direction?"right":"left",t={horizontal:e,vertical:"bottom"},o={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:t,animate:!0,content:this.popupGridTemplate,popupAlign:o,popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});var n=this.popupRef.popupElement;n.style.width="190px",n.style.height="164px",n.setAttribute("dir",this.editor.direction)},t.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},t.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!1}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("overflowElement",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"overflowElement",void 0),n.__decorate([i.ViewChild("popupGridTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupGridTemplate",void 0),t=o=n.__decorate([i.Component({providers:[{provide:d.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [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 '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[c.EditorComponent,u.EditorLocalizationService,l.PopupService,p.DialogService])],t)}(d.ToolBarToolComponent);t.EditorInsertTableButtonComponent=g},function(e,t){e.exports=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}return Object.defineProperty(e.prototype,"message",{get:function(){var e=this.state,t=e.rows,o=e.cols;return"Create a "+(t>-1?t+1:"")+" "+(o>-1?"x":"")+" "+(o>-1?o+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),e.prototype.selected=function(e){var t=this.state,o=t.rows,n=t.cols,i=Math.floor(e/this.cols),r=e%this.cols;return i<=o&&r<=n},e.prototype.setState=function(e){var t=Math.floor(e/this.cols),o=e%this.cols;this.state={rows:t,cols:o}},e.prototype.resetState=function(){this.state={rows:-1,cols:-1}},e.prototype.insertTable=function(){this.cellClick.emit(this.state)},e.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"tableWizardClick",void 0),e=n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],e)}();t.PopupTableGridComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignLeft",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignLeftButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignCenter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignCenterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignRight",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignRightButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignJustify",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignJustifyButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){var r=e.call(this,"blockquote",t,o,n,i)||this;return r.editor=o,r}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBlockquoteButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorBlockquoteDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"redo",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorRedoButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"undo",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUndoButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertImage",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorInsertImageButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"indent",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorIndentButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"outdent",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorOutdentButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"createLink",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorCreateLinkButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"unlink",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUnlinkButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertOrderedList",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorInsertOrderedListButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertUnorderedList",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorInsertUnorderedListButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"viewSource",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorViewSourceButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"bold",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorBoldButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"italic",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorItalicButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"underline",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUnderlineButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"strikethrough",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorStrikethroughButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"subscript",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSubscriptButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"superscript",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSuperscriptButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(3),a=o(14),d=o(4),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertFile",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[d.ToolBarButtonComponent,r.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(a.EditorCommandDialog);t.EditorInsertFileButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(21),a=o(22),d=function(){function e(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}return e=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],e)}();t.EditorForeColorDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(21),a=o(22),d=function(){function e(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}return e=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],e)}();t.EditorBackColorDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"cleanFormatting",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorCleanFormattingButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addColumnBefore",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddColumnBeforeButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addColumnAfter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddColumnAfterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addRowBefore",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddRowBeforeButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addRowAfter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddRowAfterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteColumn",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteColumnButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteRow",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteRowButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteTable",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteTableButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"mergeCells",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorMergeCellsButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"splitCell",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSplitCellButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=o(35),d=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,t=o=n.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoEditorLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=o(35),d=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=o=n.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-editor-messages",template:""}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e,t){this.hostEl=e,this.zone=t,this.preventDefault=function(e){e.preventDefault()}}return Object.defineProperty(e.prototype,"hostElement",{get:function(){return this.hostEl.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.hostElement.addEventListener("pointerdown",e.preventDefault)}))},e.prototype.ngOnDestroy=function(){this.hostElement.removeEventListener("pointerdown",this.preventDefault)},e=n.__decorate([i.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],e)}();t.DropDownToolDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(27),c=o(5),u=function(e){function t(t,o,n,i){var r=e.call(this,"print",t,o,n,i)||this;return r.editor=o,r}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){if(i.isDevMode&&!this.editor.iframe)throw new Error(s.EditorErrorMessages.printTool)},t.prototype.clickHandler=function(){if(this.editor.iframe){var e=this.editor.view,t=e&&e.dom,o=t&&t.ownerDocument,n=o&&o.defaultView;n&&n.print()}},t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,c.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorPrintDirective=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"selectAll",t,o,n,i)||this}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,e.prototype.clickHandler.call(this)},t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSelectAllButtonDirective=c}])}));
5
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-toolbar","@progress/kendo-angular-dialog","@progress/kendo-editor-common","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@angular/forms","@progress/kendo-angular-dropdowns","rxjs","rxjs/operators","@progress/kendo-angular-inputs","@progress/kendo-licensing","@angular/common","@progress/kendo-angular-buttons","@progress/kendo-angular-popup"],t):"object"==typeof exports?exports.KendoAngularEditor=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):e.KendoAngularEditor=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-toolbar"],e["@progress/kendo-angular-dialog"],e["@progress/kendo-editor-common"],e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@angular/forms"],e["@progress/kendo-angular-dropdowns"],e.rxjs,e["rxjs/operators"],e["@progress/kendo-angular-inputs"],e["@progress/kendo-licensing"],e["@angular/common"],e["@progress/kendo-angular-buttons"],e["@progress/kendo-angular-popup"])}(window,(function(e,t,o,n,i,r,a,d,l,s,c,u,p,m,f,g){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=36)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=function(e){function t(t,o,n){return e.call(this,t,o,n)||this}return n.__extends(t,e),t=n.__decorate([n.__param(0,i.Inject(r.L10N_PREFIX)),n.__param(1,i.Optional()),n.__param(2,i.Optional()),n.__param(2,i.Inject(r.RTL)),n.__metadata("design:paramtypes",[String,r.MessageService,Boolean])],t)}(r.LocalizationService);t.EditorLocalizationService=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(15),d=o(16),l=o(4),s=o(7),c=o(10),u=o(8),p=o(37),m=o(38),f=o(23),g=o(41),h=o(43),_=o(9),b=o(24),v=o(25),y=o(26),k=o(11),C=o(2),w=o(44),E=o(27),x=o(5),T=o(28),D={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!0,removeMsClasses:!1,removeMsStyles:!1,stripTags:[]},S=_.conditionallyExecute(u.removeComments),B=_.conditionallyExecute(u.sanitize),I=function(e){if("all"===e.removeAttributes)return{"*":u.removeAttribute};var t=_.removeEmptyEntries({style:e.removeMsStyles?u.sanitizeStyleAttr:void 0,class:e.removeMsClasses?u.sanitizeClassAttr:void 0});return e.removeAttributes.reduce((function(e,t){var o;return n.__assign({},e,((o={})[t]=u.removeAttribute,o))}),t)},O=function(){function e(e,t,o,r,d,l){var s=this;this.dialogService=e,this.localization=t,this.cdr=o,this.ngZone=r,this.element=d,this.toolsService=l,this.iframe=!0,this.applyToWord=!1,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new i.EventEmitter,this.onFocus=new i.EventEmitter,this.paste=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.hostClass=!0,this.stateChange=new a.BehaviorSubject(h.initialToolBarState),this.valueModified=new a.Subject,this._readonly=!1,this._placeholder="",this.inForm=!1,this.afterViewInit=new a.Subject,this.contentAreaLoaded=new a.Subject,this.dispatchTransaction=function(e){var t=e.docChanged;if(!(s.disabled||s.readonly&&t)){if(t){var o=e.doc,n=u.getHtml({doc:o});s.trOnChange=e,s.htmlOnChange=n,s.ngZone.run((function(){s.valueModified.next(n)}))}t&&!s.inForm||s.view.updateState(s.view.state.apply(e))}},this.transformPastedHTML=function(e){var t=n.__assign({},D,s.pasteCleanupSettings),o=_.pipe(B(t.removeInvalidHTML),S(t.removeHtmlComments))(e),i=u.pasteCleanup(o,{convertMsLists:t.convertMsLists,stripTags:t.stripTags.join("|"),attributes:I(t)});if(c.hasObservers(s.paste)){var r=new T.EditorPasteEvent(i,e,s._pasteEvent);return s.ngZone.run((function(){return s.paste.emit(r)})),r.isDefaultPrevented()?"":r.cleanedHtml}return i},this.changeValue=function(e){var t=s._value;if(s._value=e,s._view){if(s.htmlOnChange===e&&s.trOnChange)s.view.updateState(s.view.state.apply(s.trOnChange));else if((t||"")!==(e||"")){if(s.iframe&&!s.container.element.nativeElement.contentWindow)return;var o=s.view.state,n=u.parseContent(e||"",o.schema,{preserveWhitespace:s.preserveWhitespace}),i=o.tr.setSelection(new u.AllSelection(o.doc)).replaceSelectionWith(n);s.view.updateState(o.apply(i))}s.trOnChange=null,s.htmlOnChange=null}},this.onChangeCallback=function(e){s.changeValue(e)},this.onTouchedCallback=function(e){},this.onPaste=function(e,t){return s._pasteEvent=t,!1},p.validatePackage(m.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.subs=a.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe((function(){return s.initialize()}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){if(this.trOnChange)return this.htmlOnChange;var e=this._view?this.getSource():this._value;return"<p></p>"===e?this._value?"":this._value:e},set:function(e){this.changeValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(h.disabledToolBarState):this.stateChange.next(h.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(e){if(this._readonly=e||!1,this._view){var t=void 0,o=(t=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode;this._view.dom.contains(o)&&t.getSelection().removeAllRanges();var n=this._view.state.doc,i=this._view.state.tr.setSelection(u.TextSelection.create(n,1));this._view.dispatch(i)}this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(h.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(h.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return this._schema},set:function(e){if(i.isDevMode){if(!(e instanceof u.Schema))throw new Error(E.EditorErrorMessages.schemaType);if(this._view)throw new Error(E.EditorErrorMessages.setSchemaOnce)}this._schema=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){return this._plugins},set:function(e){if(i.isDevMode){if("function"!=typeof e)throw new Error(E.EditorErrorMessages.pluginsCallbackType(e));if(this._view)throw new Error(E.EditorErrorMessages.setPluginsOnce)}this._plugins=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(i.isDevMode&&this._view)throw new Error(E.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIE",{get:function(){return this.iframe&&_.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){var e=this.resizable;return e.minWidth?e.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var e=this.resizable;return e.maxWidth?e.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){var e=this.resizable;return e.minHeight?e.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){var e=this.resizable;return e.maxHeight?e.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){return this._view&&this._view.state?u.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"}))),this.subs.add(this.toolsService.needsCheck.subscribe((function(){return e.cdr.markForCheck()})))},e.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},e.prototype.ngOnChanges=function(e){var t=this;e.value&&this.view&&this.changeValue(e.value.currentValue),e.iframe&&!e.iframe.isFirstChange()&&this.ngZone.onStable.pipe(d.take(1)).subscribe((function(){return t.initialize()})),e.resizable&&!e.resizable.isFirstChange()&&this.normalizeSize()},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},e.prototype.exec=function(e,t){"setHTML"===e&&"string"==typeof t?t={content:t,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some((function(t){return t===e}))&&(t={value:t,applyToWord:this.applyToWord}),g.editorCommands[e](t)(this._view.state,this._view.dispatch,this._view)},e.prototype.openDialog=function(e){var t={createLink:{content:y.FileLinkDialogComponent},insertFile:{content:y.FileLinkDialogComponent},insertImage:{content:v.ImageDialogComponent},viewSource:{content:b.SourceDialogComponent,height:400,width:500}},o=Object.assign({appendTo:this.dialogContainer},t[e]);this.toolbar.toggle(!1);var n=this.dialogService.open(o).content.instance;"createLink"!==e&&"insertFile"!==e||(n.command=e),n.editor=this,n.setData(this._view.state,{applyToWord:this.applyToWord})},e.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},e.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},e.prototype.getSource=function(){return u.getHtml(this._view.state)},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},e.prototype.writeValue=function(e){this.inForm=!0,this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.isEmpty=function(){return!1},e.prototype.initialize=function(){var e=this;if(c.isDocumentAvailable()){var t=this.schema||f.schema,o=this.container.element.nativeElement,n=u.parseContent((this.value||"").trim(),t,{preserveWhitespace:this.preserveWhitespace});if(this.iframe){var i=o.contentDocument,r=i.createElement("meta");r.setAttribute("charset","utf-8"),i.head.appendChild(r),[w.defaultStyle,w.tablesStyles,"rtl"===this.dir?w.rtlStyles:void 0].forEach((function(e){if(e){var t=i.createElement("style");t.appendChild(i.createTextNode(e)),i.head.appendChild(t)}}));var l=i.createElement("div");i.body.appendChild(l)}else{l=document.createElement("div");o.appendChild(l)}var s=[new u.Plugin({key:new u.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:e.readonly?"0":""}}}}),new u.Plugin({key:new u.PluginKey("toolbar-tools-update"),view:function(){return{update:function(t){e.disabled||e.stateChange.next(e.readonly?h.disabledToolBarState:h.getToolbarState(t.state,{applyToWord:e.applyToWord}))}}}}),u.history(),u.keymap(u.buildListKeymap(t)),u.keymap(u.buildKeymap(t,{applyToWord:this.applyToWord})),u.keymap(u.baseKeymap),u.gapCursor(),u.imageResizing(),u.tableEditing()];this.placeholder&&s.push(u.placeholder(this.placeholder));var p=u.EditorState.create({schema:t,doc:n,plugins:_.isPresent(this.plugins)?this.plugins(s):s});if(this.iframe?this.viewMountElement=o.contentDocument.querySelector("div"):this.viewMountElement=o.querySelector("div"),this.ngZone.runOutsideAngular((function(){e._view=new u.EditorView({mount:e.viewMountElement},{state:p,editable:function(){return!e.readonly},dispatchTransaction:e.dispatchTransaction,transformPastedHTML:e.transformPastedHTML,handleDOMEvents:{paste:e.onPaste}})})),this._view){var m=void 0,g=this.element.nativeElement.querySelector(".k-editor-content").classList;m=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(a.fromEvent(m,"focusin").subscribe((function(t){if(e.readonly&&g.add("k-focus"),!e.focusChangedProgrammatically||e.shouldEmitFocus){var o=t.relatedTarget;o&&o.classList.contains("k-colorpicker")&&!e.shouldEmitFocus||e.ngZone.run((function(){return e.onFocus.emit()})),e.shouldEmitFocus=!1}}))),this.subs.add(a.fromEvent(m,"focusout").subscribe((function(t){if(e.readonly&&g.remove("k-focus"),!e.focusChangedProgrammatically){var o=t.relatedTarget;o&&o.classList.contains("k-colorpicker")||e.ngZone.run((function(){return e.onBlur.emit()}))}})))}this.subs.add(this.stateChange.subscribe((function(){e.userToolBarComponent?e.userToolBarComponent.cdr.detectChanges():e.cdr.detectChanges()}))),this.subs.add(this.valueModified.subscribe((function(t){e.onChangeCallback(t),e.valueChange.emit(t),e.cdr.markForCheck()}))),this.subs.add(a.fromEvent(this.viewMountElement,"keyup").pipe(d.map((function(e){return e.keyCode})),d.filter((function(e){return 121===e})),d.map((function(){return e.userToolBarElement||e.defaultToolbar}))).subscribe((function(e){return e.nativeElement.focus()}))),this.subs.add(a.fromEvent(this.viewMountElement,"blur").pipe(d.filter((function(t){return!e.viewMountElement.contains(t.relatedTarget)}))).subscribe((function(){return e.onTouchedCallback()})))}},e.prototype.normalizeSize=function(){var e=this;if("object"==typeof this.resizable&&!this._styleObserver){var t=this.element.nativeElement;this._styleObserver=new MutationObserver((function(){e.ngZone.runOutsideAngular((function(){return e.normalizeProperties(t)}))})),this._styleObserver.observe(t,{attributeFilter:["style"]})}},e.prototype.normalizeProperties=function(e){var t=Object.keys(this.resizable),o=parseInt(e.style.width,10),n=parseInt(e.style.height,10),i=this.resizable;t.forEach((function(t){var r=t.startsWith("min"),a=!r,d=t.endsWith("Width"),l=!d;r&&d?o<i.minWidth&&(e.style.width=i.minWidth+"px"):r&&l?n<i.minHeight&&(e.style.height=i.minHeight+"px"):a&&d?o>i.maxWidth&&(e.style.width=i.maxWidth+"px"):n>i.maxHeight&&(e.style.height=i.maxHeight+"px")}))},n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"value",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"readonly",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"iframe",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"applyToWord",void 0),n.__decorate([i.Input(),n.__metadata("design:type",u.Schema),n.__metadata("design:paramtypes",[u.Schema])],e.prototype,"schema",null),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"plugins",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"preserveWhitespace",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"pasteCleanupSettings",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"resizable",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.Output("focus"),n.__metadata("design:type",i.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"paste",void 0),n.__decorate([i.Output("blur"),n.__metadata("design:type",i.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([i.HostBinding("class.k-editor"),n.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),n.__decorate([i.HostBinding("class.k-editor-resizable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"resizableClass",null),n.__decorate([i.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([i.HostBinding("class.k-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([i.HostBinding("class.k-ie"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isIE",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([i.HostBinding("attr.ariaDisabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),n.__decorate([i.HostBinding("style.minWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"minWidth",null),n.__decorate([i.HostBinding("style.maxWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"maxWidth",null),n.__decorate([i.HostBinding("style.minHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"minHeight",null),n.__decorate([i.HostBinding("style.maxHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"maxHeight",null),n.__decorate([i.ContentChild(l.ToolBarComponent,{static:!1}),n.__metadata("design:type",l.ToolBarComponent)],e.prototype,"userToolBarComponent",void 0),n.__decorate([i.ContentChild(l.ToolBarComponent,{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],e.prototype,"userToolBarElement",void 0),n.__decorate([i.ViewChild("dialogsContainer",{read:i.ViewContainerRef,static:!0}),n.__metadata("design:type",i.ViewContainerRef)],e.prototype,"dialogContainer",void 0),n.__decorate([i.ViewChild("content",{read:i.ViewContainerRef,static:!1}),n.__metadata("design:type",i.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([i.ViewChild("defaultToolbar",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],e.prototype,"defaultToolbar",void 0),n.__decorate([i.ViewChild("defaultToolbar",{read:l.ToolBarComponent,static:!1}),n.__metadata("design:type",l.ToolBarComponent)],e.prototype,"defaultToolbarComponent",void 0),e=t=n.__decorate([i.Component({selector:"kendo-editor",providers:[C.EditorLocalizationService,x.EditorToolsService,{provide:k.LocalizationService,useExisting:C.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:i.forwardRef((function(){return t}))}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-blockquote="kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote"\n blockquote="Quotation"\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 srcdoc="<!DOCTYPE html>" frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),n.__metadata("design:paramtypes",[s.DialogService,k.LocalizationService,i.ChangeDetectorRef,i.NgZone,i.ElementRef,x.EditorToolsService])],e)}();t.EditorComponent=O},function(e,t){e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(15),a=function(){function e(){this.needsCheck=new r.Subject}return e=n.__decorate([i.Injectable()],e)}();t.EditorToolsService=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n,i,r){var a=e.call(this,t,o,n,i,r)||this;return a.command=t,a.button=o,a.editor=n,a.localization=i,a.toolsService=r,a}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},t.prototype.pointerdownHandler=function(e){e.preventDefault()},t.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},t}(o(34).EditorCommandBase);t.EditorCommandButton=i},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(10);t.outerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t+=parseFloat(o.marginLeft)||0+parseFloat(o.marginRight)||0},t.removeEntries=function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,o){var n;return Object.assign(t,((n={})[o]=e[o],n))}),{})},t.removeEmptyEntries=function(e){return t.removeEntries(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))},t.isEmpty=function(e){return 0===Object.keys(e).length},t.isNullOrUndefined=function(e){return null==e},t.isPresent=function(e){return!t.isNullOrUndefined(e)},t.detectIE=function(){if(!n.isDocumentAvailable())return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),o=e.indexOf("Trident/");return t>0||o>0},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.unique=function(e){return Array.from(new Set(e))},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.toArray=function(e){return e instanceof Array?e:[e]},t.getUniqueStyleValues=function(e,o){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.safeString).map(t.split(";")).map(t.filter((function(e){return e.includes(o)}))).map((function(e){return 0!==e.length?e:[o+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return n.indexOf("INVALID")>-1||1!==n.length?"":n[0]},t.conditionallyExecute=function(e){return function(t){return function(o){return t?e(o):o}}},t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}},function(e,t){e.exports=r},function(e,t){e.exports=a},function(e,t){e.exports=d},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n,i,r){var a=e.call(this,t,o,n,i,r)||this;return a.dialog=t,a.button=o,a.editor=n,a.localization=i,a.toolsService=r,a}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},t.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},t}(o(34).EditorCommandBase);t.EditorCommandDialog=i},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FormatDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FontFamilyDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FontSizeDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(17),d=o(2),l=o(9),s=o(3),c=o(7),u=o(30),p=o(16),m=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r.editor=t,r.localization=o,r.dialogService=n,r.ngZone=i,r.tabindex=-1,r.disabled=!1,r.views=["palette"],r}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.disabled=o.disabled}))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},t.prototype.handleValueChange=function(e){this.editor.exec(this.editorCommand,e),this.editor.view.focus()},t.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.handleValueChange(e.color)},t.prototype.onOpen=function(e){this.valueCache=e.value,e.reset()},t.prototype.onClose=function(e){var t=this;e.value||(e.value=this.valueCache),this.editor.shouldEmitFocus=!0,this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return t.editor.view.focus()}))},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return l.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,views:this.views})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.colorPickerButton.nativeElement.focus():this.colorPicker.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"icon",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"paletteSettings",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"editorCommand",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Array)],t.prototype,"views",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"view",null),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("colorpicker",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("colorpicker",{read:a.ColorPickerComponent,static:!1}),n.__metadata("design:type",a.ColorPickerComponent)],t.prototype,"colorPicker",void 0),n.__decorate([i.ViewChild("colorPickerButton",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"colorPickerButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]="title"\n [icon]="icon"\n [views]="views"\n [format]="\'hex\'"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[s.EditorComponent,d.EditorLocalizationService,c.DialogService,i.NgZone])],t)}(r.ToolBarToolComponent);t.EditorColorPickerComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",blockquote:"blockquote",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(39),i=o(8);t.Schema=i.Schema;var r=i.marks,a=Object.assign(i.nodes,n.semanticNodes);t.schema=new i.Schema({marks:r,nodes:a})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data="",n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.textarea.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},t.prototype.getData=function(){return this.textarea.nativeElement.value},t.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.indent=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("textarea",{static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"textarea",void 0),t=n.__decorate([i.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.SourceDialogComponent=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(7),d=o(8),l=o(9),s=o(2),c=o(10),u=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.src=new r.FormControl("",r.Validators.required),n.alt=new r.FormControl(""),n.width=new r.FormControl("",r.Validators.min(1)),n.height=new r.FormControl("",r.Validators.min(1)),n.data={alt:"",height:"",src:"",width:""},n.imageData=new r.FormGroup({alt:n.alt,height:n.height,src:n.src,width:n.width}),n}return n.__extends(t,e),t.prototype.ngOnInit=function(){this.srcInputId="k-"+c.guid(),this.altTextInputId="k-"+c.guid(),this.widthInputId="k-"+c.guid(),this.heightInputId="k-"+c.guid()},t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.srcInput.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},t.prototype.setData=function(e){var t=d.getNodeFromSelection(e);t&&(this.src.patchValue(t.attrs.src),this.alt.patchValue(t.attrs.alt),this.width.patchValue(t.attrs.width),this.height.patchValue(t.attrs.height))},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},t.prototype.normalizeDimension=function(e){return Number.isNaN(parseInt(e,10))||parseInt(e,10)<=0?"":l.safeString(parseInt(e,10))},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("srcInput",{read:i.ElementRef,static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"srcInput",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox k-input k-rounded-md" />\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 k-input k-rounded-md" />\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 k-input k-rounded-md" />\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 k-input k-rounded-md" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[a.DialogRef,s.EditorLocalizationService])],t)}(a.DialogContentBase);t.ImageDialogComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(7),d=o(8),l=o(9),s=o(2),c=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.linkForm=new r.FormGroup({href:new r.FormControl("",r.Validators.required),text:new r.FormControl({value:"",disabled:!0},r.Validators.required),title:new r.FormControl("")}),n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.hrefInput.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){var e=this.getData();this.editor.exec(this.command,e),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(t.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),t.prototype.setData=function(e,t){"createLink"===this.command&&this.linkForm.addControl("target",new r.FormControl);var o=d.getMark(e,e.schema.marks.link);if(o)this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:l.isPresent(o.attrs.target),text:this.setLinkText(e)});else if(e.selection.empty){var n=t.applyToWord?d.expandSelection(e,(function(){}),t).state:e;n.selection.empty||this.linkForm.patchValue({text:d.getSelectionText(n)})}else this.linkForm.patchValue({text:d.getSelectionText(e)})},t.prototype.textForWithPrefix=function(e){var t="createLink"===this.command?"link":"file";return this.textFor(t+e)},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.setLinkText=function(e){var t=e.selection;if(t.empty&&t.$cursor){var o=t.$cursor,n=o.index();return o.parent.child(n).text}return d.getSelectionText(e)},t.prototype.getData=function(){var e=this.linkForm.value;return l.isPresent(this.linkForm.controls.target)&&(e.target=e.target?"_blank":null),e},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"command",void 0),n.__decorate([i.ViewChild("hrefInput",{read:i.ElementRef,static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"hrefInput",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />\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 k-input k-rounded-md" />\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 k-input k-rounded-md" />\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" kendoCheckBox formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[a.DialogRef,s.EditorLocalizationService])],t)}(a.DialogContentBase);t.FileLinkDialogComponent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(e){return"plugins must be a function, but received "+JSON.stringify(e)+"."},pastedContentCallbackType:function(e){return"pastedContent must be a function, but received "+JSON.stringify(e)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See https://www.telerik.com/kendo-angular-ui/components/editor/plugins/#toc-custom-plugins/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n){var i=e.call(this)||this;return i.cleanedHtml=t,i.originalHtml=o,i.originalEvent=n,i}return n.__extends(t,e),t}(o(10).PreventableEvent);t.EditorPasteEvent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(18),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.formatDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("formatDropDownList",{read:l.FormatDropDownListComponent,static:!0}),n.__metadata("design:type",l.FormatDropDownListComponent)],t.prototype,"formatDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FormatDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(17),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.colorPicker.focus()}))},t.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.value=e.color},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close(),this.editor.view.focus()},t.prototype.setData=function(e){this.editor=e.editor,this.value=e.value,this.editorCommand=e.editorCommand,this.paletteSettings=e.paletteSettings,this.icon=e.icon,this.views=e.view?[e.view]:e.views},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("colorpicker",{read:l.ColorPickerComponent,static:!0}),n.__metadata("design:type",l.ColorPickerComponent)],t.prototype,"colorPicker",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [views]="views"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.ColorPickerDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(19),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.fontFamilyDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("fontFamilyDropDownList",{read:l.FontFamilyDropDownListComponent,static:!0}),n.__metadata("design:type",l.FontFamilyDropDownListComponent)],t.prototype,"fontFamilyDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FontFamilyDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n}return n.__extends(t,e),t.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},t.prototype.onCellClick=function(e){this.dialog.close(),this.editor.exec("insertTable",e),this.editor.view.focus()},t.prototype.setData=function(e){this.editor=e.editor},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.InsertTableDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(20),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.fontSizeDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("fontSizeDropDownList",{read:l.FontSizeDropDownListComponent,static:!0}),n.__metadata("design:type",l.FontSizeDropDownListComponent)],t.prototype,"fontSizeDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FontSizeDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(22),i=function(){function e(e,t,o,i,r){var a=this;this.command=e,this.button=t,this.editor=o,this.localization=i,this.toolsService=r,setTimeout((function(){var e=a.localization.get(a.command);e&&(a.button.showText="overflow",a.button.showIcon="both",a.button.text=e),a.button.toolbarOptions.icon||(a.button.icon=n.commandIcons[a.command]),a.button.title=e,a.toolsService.needsCheck.next()}))}return e.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)))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},e.prototype.clickHandler=function(){},e.prototype.pointerdownHandler=function(e){},e.prototype.onStateChange=function(e){},e}();t.EditorCommandBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignCenter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignJustify",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignLeft",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignRight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"backColor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"blockquote",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"bold",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"cleanFormatting",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"createLink",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fontFamily",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fontSize",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"foreColor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"format",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"indent",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertFile",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertImage",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertOrderedList",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertUnorderedList",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"italic",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"outdent",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"print",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"redo",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"selectAll",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"strikethrough",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"subscript",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"superscript",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"underline",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"undo",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"unlink",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"viewSource",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertTable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addColumnBefore",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addColumnAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addRowBefore",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addRowAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteColumn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteRow",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteTable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogApply",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogCancel",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogInsert",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogUpdate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileWebAddress",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageAltText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageWebAddress",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkOpenInNewWindow",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkWebAddress",void 0),t}(o(11).ComponentMessages);t.Messages=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);t.EditorComponent=n.EditorComponent;var i=o(45);t.EditorModule=i.EditorModule;var r=o(23);t.schema=r.schema,t.Schema=r.Schema;var a=o(8);t.EditorState=a.EditorState,t.Plugin=a.Plugin,t.PluginKey=a.PluginKey,t.Transaction=a.Transaction,t.EditorView=a.EditorView,t.Decoration=a.Decoration,t.DecorationSet=a.DecorationSet,t.NodeType=a.NodeType,t.Node=a.Node,t.MarkType=a.MarkType,t.Mark=a.Mark,t.InputRule=a.InputRule,t.inputRules=a.inputRules,t.wrappingInputRule=a.wrappingInputRule,t.textblockTypeInputRule=a.textblockTypeInputRule,t.keymap=a.keymap,t.baseKeymap=a.baseKeymap,t.history=a.history,t.dropCursor=a.dropCursor,t.gapCursor=a.gapCursor,t.tableNodes=a.tableNodes,t.getSelectionText=a.getSelectionText;var d=o(28);t.EditorPasteEvent=d.EditorPasteEvent},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1644219296,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(40);t.semanticTagNames=["article","main","nav","header","footer","aside","section"],t.semanticNodes=t.semanticTagNames.reduce((function(e,t){var o,r;return Object.assign(e,((o={})[t]=(r=t,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:r,getAttrs:i.getAttributes}],toDOM:function(e){return i.hasAttrs(e.attrs)?[r,i.getAttrs(e.attrs),i.hole]:[r,i.hole]}}),o))}),{})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);t.hasAttrs=function(e,t){for(var o in e)if(o&&null!==e[o]&&o!==t)return!0;return!1},t.getAttrs=function(e,t){var o={};for(var n in e)n&&null!==e[n]&&n!==t&&(o[n]=e[n]);return o},t.getAttributes=function(e){for(var t,o={},n=e.attributes,i=0;i<n.length;i++)o[(t=n[i]).name]=t.value;return o},t.serializeDOMAttrs=function(e){return Array.from(e.attributes).reduce((function(e,t){var o;return Object.assign({},e,((o={})[t.name]=t.value,o))}),{})},t.commonAttributes=function(){return n.__assign({},t.createDefaultAttributes(["class","id","style"]))},t.createDefaultAttributes=function(e){return void 0===e&&(e=[]),n.__assign({},e.reduce((function(e,t){var o;return n.__assign({},e,((o={})[t]={default:null},o))}),{}))},t.hole=0,t.isSchemaNode=function(e){return function(t){return t.type.name===e}},t.isTable=t.isSchemaNode("table"),t.isTableBody=t.isSchemaNode("table_body"),t.isTableHead=t.isSchemaNode("table_head"),t.isTableFoot=t.isSchemaNode("table_foot"),t.isTableRow=t.isSchemaNode("table_row"),t.isTableCell=t.isSchemaNode("table_cell"),t.isTableHeaderCell=t.isSchemaNode("table_header")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(8),r=o(42),a=function(e,t){return i.alignBlocks(i.alignRemoveRules)(e,t)},d={bold:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.bold,{applyToWord:e}))},cleanFormatting:function(e){return i.cleanFormatting(e)},createLink:function(e){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:e.value,applyToWord:e.applyToWord})},fontFamily:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-family",value:e.value,applyToWord:e.applyToWord})},fontSize:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-size",value:e.value+"px",applyToWord:e.applyToWord})},insertFile:function(e){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:e,applyToWord:e.applyToWord})},insertText:function(e){return i.insertText(e)},italic:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.italic,{applyToWord:e}))},strikethrough:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.strikethrough,{applyToWord:e}))},subscript:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.subscript,{applyToWord:e}))},superscript:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.superscript,{applyToWord:e}))},underline:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.underline,{applyToWord:e}))},unlink:function(){return i.removeLink(i.link)},foreColor:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"color",value:e.value,applyToWord:e.applyToWord})},backColor:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"background-color",value:e.value,applyToWord:e.applyToWord})},selectAll:function(){return function(e,t){return i.selectAll(e,t)}}},l={alignCenter:function(){return function(e,t){return i.isAligned(e,i.alignCenterRules)?a(e,t):i.alignBlocks(i.alignCenterRules)(e,t)}},alignJustify:function(){return function(e,t){return i.isAligned(e,i.alignJustifyRules)?a(e,t):i.alignBlocks(i.alignJustifyRules)(e,t)}},alignLeft:function(){return function(e,t){return i.isAligned(e,i.alignLeftRules)?a(e,t):i.alignBlocks(i.alignLeftRules)(e,t)}},alignRight:function(){return function(e,t){return i.isAligned(e,i.alignRightRules)?a(e,t):i.alignBlocks(i.alignRightRules)(e,t)}},format:function(e){return i.formatBlockElements(e.tag)},getHTML:function(){return i.getHtml},indent:function(){return i.indent},insertImage:function(e){return i.insertImage(e)},insertOrderedList:function(){return i.toggleOrderedList},insertUnorderedList:function(){return i.toggleUnorderedList},outdent:function(){return i.outdent},redo:function(){return i.redo},setHTML:function(e){var t=e.content,o=e.parseOptions;return i.setHtml(t,"setHTML",o)},undo:function(){return i.undo},blockquote:function(){return i.blockquote}},s={insertTable:function(e){return r.insertTable(e)},addColumnBefore:function(){return i.addColumnBefore},addColumnAfter:function(){return i.addColumnAfter},addRowBefore:function(){return i.addRowBefore},addRowAfter:function(){return i.addRowAfter},deleteRow:function(){return i.deleteRow},deleteColumn:function(){return i.deleteColumn},mergeCells:function(){return i.mergeCells},splitCell:function(){return i.splitCell},deleteTable:function(){return i.deleteTable}};t.editorCommands=Object.assign({},d,l,s)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8);t.insertTable=function(e){return function(t,o){var i=n.createTable(t.schema.nodes,e.rows,e.cols);i&&n.insertNode(i,!0)(t,o)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),i=o(8);t.getToolbarState=function(e,t){return{alignCenter:{selected:i.isAligned(e,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(e,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(e,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(e,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(e,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(e)},format:{selected:i.activeNode(e),disabled:!1},blockquote:{selected:!1,disabled:!n.blockquote(e)},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,get disabled(){return!(i.hasNode(e,e.schema.nodes.blockquote)||i.canOutdentAsListItem(e,i.outdentRules)||n.isIndented(e,i.outdentRules.nodes))}},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 o=e.selection.empty;return t&&t.applyToWord&&o?i.expandSelection(e,(function(){}),t).state.selection.empty:o}},insertFile:{selected:!1,disabled:e.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},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)}}},t.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!1},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},t.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n padding: 8px;\n}\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\ndiv.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\ndiv.ProseMirror:focus {\n outline: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror li {\n position: relative;\n}\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* image resizing */\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px;\n top: 0;\n bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(46),a=o(12),d=o(4),l=o(13),s=o(7),c=o(47),u=o(17),p=o(3),m=o(25),f=o(24),g=o(26),h=o(29),_=o(30),b=o(31),v=o(32),y=o(48),k=o(49),C=o(50),w=o(21),E=o(51),x=o(53),T=o(54),D=o(55),S=o(56),B=o(57),I=o(58),O=o(59),L=o(60),P=o(61),z=o(62),A=o(63),F=o(64),M=o(65),R=o(66),j=o(67),W=o(68),H=o(69),V=o(70),N=o(71),q=o(72),U=o(73),K=o(74),J=o(75),G=o(76),$=o(77),Z=o(78),X=o(79),Q=o(80),Y=o(81),ee=o(82),te=o(83),oe=o(84),ne=o(85),ie=o(86),re=o(87),ae=o(88),de=o(89),le=o(18),se=o(19),ce=o(20),ue=o(33),pe=o(90),me=o(91),fe=o(92),ge=[T.EditorAlignLeftButtonDirective,D.EditorAlignCenterButtonDirective,S.EditorAlignRightButtonDirective,B.EditorAlignJustifyButtonDirective,J.EditorInsertFileButtonDirective,O.EditorRedoButtonDirective,L.EditorUndoButtonDirective,P.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,A.EditorOutdentButtonDirective,F.EditorCreateLinkButtonDirective,M.EditorUnlinkButtonDirective,R.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,W.EditorViewSourceButtonDirective,H.EditorBoldButtonDirective,V.EditorItalicButtonDirective,N.EditorUnderlineButtonDirective,q.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,K.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,$.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,ee.EditorAddRowAfterButtonDirective,te.EditorDeleteColumnButtonDirective,oe.EditorDeleteRowButtonDirective,ne.EditorDeleteTableButtonDirective,ie.EditorMergeCellsButtonDirective,re.EditorSplitCellButtonDirective,de.CustomMessagesComponent,ae.LocalizedMessagesDirective,pe.DropDownToolDirective,me.EditorPrintDirective,fe.EditorSelectAllButtonDirective,I.EditorBlockquoteDirective],he=[k.EditorFontSizeComponent,C.EditorFontFamilyComponent,y.EditorFormatComponent,w.EditorColorPickerComponent,E.EditorInsertTableButtonComponent],_e=[g.FileLinkDialogComponent,m.ImageDialogComponent,f.SourceDialogComponent,h.FormatDialogComponent,_.ColorPickerDialogComponent,b.FontFamilyDialogComponent,ue.FontSizeDialogComponent,v.InsertTableDialogComponent],be=[x.PopupTableGridComponent,le.FormatDropDownListComponent,se.FontFamilyDropDownListComponent,ce.FontSizeDropDownListComponent],ve=function(){function e(){}return e=n.__decorate([i.NgModule({declarations:[p.EditorComponent,ge,he,_e,be],entryComponents:[_e],exports:[p.EditorComponent,ge,he,d.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,be],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,u.ColorPickerModule,s.DialogModule,l.DropDownsModule,u.NumericTextBoxModule,u.CheckBoxModule,d.ToolBarModule,u.TextBoxModule]})],e)}();t.EditorModule=ve},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(7),d=o(9),l=o(3),s=o(2),c=o(29),u=o(18),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._data=[{text:"Paragraph",tag:"p"},{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"}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.formatDropDownList||e.formatDropDownList.dropDownList.isOpen)||null===t.dataItem.tag},setTimeout((function(){e.defaultItem={text:e.title,tag:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.format,n=e.data.findIndex((function(e){return e.tag===o.selected.tag}));e.value=-1!==n?o.selected.tag:null,e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("format",{tag:e}),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.tag===e}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){var e=this.formatDropDownList.element;if(e)return d.outerWidth(e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.formatButton.nativeElement.focus():this.formatDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("formatDropDownList",{static:!1}),n.__metadata("design:type",u.FormatDropDownListComponent)],t.prototype,"formatDropDownList",void 0),n.__decorate([i.ViewChild("formatButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"formatButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[l.EditorComponent,a.DialogService,s.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFormatComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(9),d=o(3),l=o(2),s=o(7),c=o(33),u=o(20),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._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}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontSizeDropDownList||e.fontSizeDropDownList.dropDownList.isOpen)||null===t.dataItem.size},setTimeout((function(){e.defaultItem={text:e.title,size:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.value=(a.getUniqueStyleValues(o.selected,"font-size").match(/\d+/g)||[null])[0],e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){a.isPresent(e)&&(this.editor.exec("fontSize",e),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.size===parseInt(e,10)}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return a.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontSizeButton.nativeElement.focus():this.fontSizeDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:u.FontSizeDropDownListComponent,static:!1}),n.__metadata("design:type",u.FontSizeDropDownListComponent)],t.prototype,"fontSizeDropDownList",void 0),n.__decorate([i.ViewChild("fontSizeButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"fontSizeButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[d.EditorComponent,s.DialogService,l.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFontSizeComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(9),d=o(3),l=o(2),s=o(7),c=o(31),u=o(19),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._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"}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontFamilyDropDownList||e.fontFamilyDropDownList.dropDownList.isOpen)||null===t.dataItem.fontName},setTimeout((function(){e.defaultItem={text:e.title,fontName:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.value=a.getUniqueStyleValues(o.selected,"font-family")||null,e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){a.isPresent(e)&&(this.editor.exec("fontFamily",e),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.fontName===e}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return a.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontFamilyButton.nativeElement.focus():this.fontFamilyDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:u.FontFamilyDropDownListComponent,static:!1}),n.__metadata("design:type",u.FontFamilyDropDownListComponent)],t.prototype,"fontFamilyDropDownList",void 0),n.__decorate([i.ViewChild("fontFamilyButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"fontFamilyButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[d.EditorComponent,s.DialogService,l.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFontFamilyComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(15),a=o(16),d=o(4),l=o(52),s=o(9),c=o(3),u=o(2),p=o(7),m=o(32),f=o(10),g=function(e){function t(t,o,n,d){var l=e.call(this)||this;return l.editor=t,l.localization=o,l.popupService=n,l.dialogService=d,l.open=!1,l.buttonBlurred=new i.EventEmitter,l.cellClicked=new i.EventEmitter,l.subs=l.editor.stateChange.subscribe((function(e){var t=e.insertTable;l.disabled=t.disabled})),l.subs.add(l.buttonBlurred.pipe(a.concatMap((function(){return r.interval(200).pipe(a.take(1),a.takeUntil(l.cellClicked))}))).subscribe((function(){l.toggle(!1)}))),l}var o;return n.__extends(t,e),o=t,t.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return s.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),t.prototype.toggle=function(e){this.open=void 0===e?!this.open:e,this.destroyPopup(),this.open&&this.createPopup()},t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:m.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor})},t.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},t.prototype.onCellClick=function(e){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",e)},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},t.prototype.handleKey=function(e){return e.keyCode===f.Keys.Space||e.keyCode===f.Keys.Enter||(this.tabIndex=-1,!1)},t.prototype.onTableWizardClick=function(){},t.prototype.createPopup=function(){var e="rtl"===this.editor.direction?"right":"left",t={horizontal:e,vertical:"bottom"},o={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:t,animate:!0,content:this.popupGridTemplate,popupAlign:o,popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});var n=this.popupRef.popupElement;n.style.width="190px",n.style.height="164px",n.setAttribute("dir",this.editor.direction)},t.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},t.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!1}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("overflowElement",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"overflowElement",void 0),n.__decorate([i.ViewChild("popupGridTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupGridTemplate",void 0),t=o=n.__decorate([i.Component({providers:[{provide:d.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [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 '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[c.EditorComponent,u.EditorLocalizationService,l.PopupService,p.DialogService])],t)}(d.ToolBarToolComponent);t.EditorInsertTableButtonComponent=g},function(e,t){e.exports=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}return Object.defineProperty(e.prototype,"message",{get:function(){var e=this.state,t=e.rows,o=e.cols;return"Create a "+(t>-1?t+1:"")+" "+(o>-1?"x":"")+" "+(o>-1?o+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),e.prototype.selected=function(e){var t=this.state,o=t.rows,n=t.cols,i=Math.floor(e/this.cols),r=e%this.cols;return i<=o&&r<=n},e.prototype.setState=function(e){var t=Math.floor(e/this.cols),o=e%this.cols;this.state={rows:t,cols:o}},e.prototype.resetState=function(){this.state={rows:-1,cols:-1}},e.prototype.insertTable=function(){this.cellClick.emit(this.state)},e.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"tableWizardClick",void 0),e=n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],e)}();t.PopupTableGridComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignLeft",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignLeftButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignCenter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignCenterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignRight",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignRightButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignJustify",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignJustifyButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){var r=e.call(this,"blockquote",t,o,n,i)||this;return r.editor=o,r}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBlockquoteButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorBlockquoteDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"redo",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorRedoButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"undo",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUndoButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertImage",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorInsertImageButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"indent",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorIndentButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"outdent",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorOutdentButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"createLink",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorCreateLinkButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"unlink",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUnlinkButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertOrderedList",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorInsertOrderedListButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertUnorderedList",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorInsertUnorderedListButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"viewSource",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorViewSourceButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"bold",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorBoldButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"italic",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorItalicButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"underline",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUnderlineButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"strikethrough",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorStrikethroughButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"subscript",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSubscriptButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"superscript",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSuperscriptButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(3),a=o(14),d=o(4),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertFile",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[d.ToolBarButtonComponent,r.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(a.EditorCommandDialog);t.EditorInsertFileButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(21),a=o(22),d=function(){function e(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}return e=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],e)}();t.EditorForeColorDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(21),a=o(22),d=function(){function e(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}return e=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],e)}();t.EditorBackColorDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"cleanFormatting",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorCleanFormattingButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addColumnBefore",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddColumnBeforeButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addColumnAfter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddColumnAfterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addRowBefore",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddRowBeforeButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addRowAfter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddRowAfterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteColumn",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteColumnButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteRow",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteRowButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteTable",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteTableButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"mergeCells",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorMergeCellsButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"splitCell",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSplitCellButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=o(35),d=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,t=o=n.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoEditorLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=o(35),d=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=o=n.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-editor-messages",template:""}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e,t){this.hostEl=e,this.zone=t,this.preventDefault=function(e){e.preventDefault()}}return Object.defineProperty(e.prototype,"hostElement",{get:function(){return this.hostEl.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.hostElement.addEventListener("pointerdown",e.preventDefault)}))},e.prototype.ngOnDestroy=function(){this.hostElement.removeEventListener("pointerdown",this.preventDefault)},e=n.__decorate([i.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],e)}();t.DropDownToolDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(27),c=o(5),u=function(e){function t(t,o,n,i){var r=e.call(this,"print",t,o,n,i)||this;return r.editor=o,r}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){if(i.isDevMode&&!this.editor.iframe)throw new Error(s.EditorErrorMessages.printTool)},t.prototype.clickHandler=function(){if(this.editor.iframe){var e=this.editor.view,t=e&&e.dom,o=t&&t.ownerDocument,n=o&&o.defaultView;n&&n.print()}},t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,c.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorPrintDirective=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"selectAll",t,o,n,i)||this}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,e.prototype.clickHandler.call(this)},t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSelectAllButtonDirective=c}])}));