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