UNPKG

19.9 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-wig",["exports","@angular/core","@angular/forms","@angular/common"],e):e((t=t||self)["ngx-wig"]={},t.ng.core,t.ng.forms,t.ng.common)}(this,(function(t,e,n,o){"use strict";
2/*! *****************************************************************************
3 Copyright (c) Microsoft Corporation. All rights reserved.
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5 this file except in compliance with the License. You may obtain a copy of the
6 License at http://www.apache.org/licenses/LICENSE-2.0
7
8 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11 MERCHANTABLITY OR NON-INFRINGEMENT.
12
13 See the Apache Version 2.0 License for specific language governing permissions
14 and limitations under the License.
15 ***************************************************************************** */var i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var r={list1:{label:"UL",title:"Unordered List",command:"insertunorderedlist",styleClass:"list-ul",icon:"icon-list-ul"},list2:{label:"OL",title:"Ordered List",command:"insertorderedlist",styleClass:"list-ol",icon:"icon-list-ol"},bold:{label:"B",title:"Bold",command:"bold",styleClass:"bold",icon:"icon-bold"},italic:{label:"I",title:"Italic",command:"italic",styleClass:"italic",icon:"icon-italic"},link:{label:"Link",title:"Link",command:"createlink",styleClass:"link",icon:"icon-link"},underline:{label:"U",title:"Underline",command:"underline",styleClass:"format-underlined",icon:"icon-underline"}},a=new e.InjectionToken("BUTTONS"),l=function(){function t(t){this._defaultButtonsList=[],this._buttonLibrary=t.reduce((function(t,e){return i(i({},t),e)}),{}),this._defaultButtonsList=Object.keys(this._buttonLibrary)}return t.prototype.setButtons=function(t){if(!Array.isArray(t))throw new Error('Argument "buttons" should be an array');this._defaultButtonsList=t},t.prototype.addStandardButton=function(t,e,n,o,i){if(!t||!e||!n)throw new Error('Arguments "name", "title" and "command" are required');o=o||"",this._buttonLibrary[t]={title:e,command:n,styleClass:o,icon:i},this._defaultButtonsList.push(t)},t.prototype.getToolbarButtons=function(t){var e=this,n=this._defaultButtonsList,o=[];return void 0!==t&&(n=t.split(",").map(Function.prototype.call,String.prototype.trim)),n.forEach((function(t){if(t){if(!e._buttonLibrary[t])throw new Error('There is no "'+t+'" in your library. Possible variants: '+Object.keys(e._buttonLibrary));var n=Object.assign({},e._buttonLibrary[t]);o.push(n)}})),o},t.ɵfac=function(n){return new(n||t)(e["ɵɵinject"](a))},t.ɵprov=e["ɵɵdefineInjectable"]({token:t,factory:t.ɵfac,providedIn:"root"}),t}();var s=["ngWigEditable"];function d(t,n){if(1&t&&(e["ɵɵelementContainerStart"](0),e["ɵɵtext"](1),e["ɵɵelementContainerEnd"]()),2&t){var o=e["ɵɵnextContext"]().$implicit;e["ɵɵadvance"](1),e["ɵɵtextInterpolate"](o.label)}}var c=function(t){return[t]};function u(t,n){if(1&t&&e["ɵɵelement"](0,"div",13),2&t){var o=e["ɵɵnextContext"]().$implicit;e["ɵɵproperty"]("ngClass",e["ɵɵpureFunction1"](1,c,o.icon))}}function p(t,n){if(1&t){var o=e["ɵɵgetCurrentView"]();e["ɵɵelementStart"](0,"li",9),e["ɵɵelementStart"](1,"div"),e["ɵɵelementStart"](2,"button",10),e["ɵɵlistener"]("click",(function(){e["ɵɵrestoreView"](o);var t=n.$implicit;return e["ɵɵnextContext"]().execCommand(t.command)})),e["ɵɵtemplate"](3,d,2,1,"ng-container",11),e["ɵɵtemplate"](4,u,1,3,"div",12),e["ɵɵelementEnd"](),e["ɵɵelementEnd"](),e["ɵɵelementEnd"]()}if(2&t){var i=n.$implicit,r=e["ɵɵnextContext"]();e["ɵɵadvance"](2),e["ɵɵproperty"]("ngClass",e["ɵɵpureFunction1"](5,c,i.styleClass))("title",i.title)("disabled",r.disabled),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngIf",!i.icon),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngIf",i.icon)}}function g(t,n){if(1&t){var o=e["ɵɵgetCurrentView"]();e["ɵɵelementStart"](0,"div",14),e["ɵɵelementStart"](1,"textarea",15),e["ɵɵlistener"]("ngModelChange",(function(t){return e["ɵɵrestoreView"](o),e["ɵɵnextContext"]().onTextareaChange(t)}))("blur",(function(){return e["ɵɵrestoreView"](o),e["ɵɵnextContext"]().propagateTouched()})),e["ɵɵtext"](2," "),e["ɵɵelementEnd"](),e["ɵɵelementEnd"]()}if(2&t){var i=e["ɵɵnextContext"]();e["ɵɵadvance"](1),e["ɵɵproperty"]("ngModel",i.content)}}function h(t,n){if(1&t&&e["ɵɵelement"](0,"div",16),2&t){var o=e["ɵɵnextContext"]();e["ɵɵproperty"]("innerText",o.placeholder)}}var m=function(t){return{"nw-editor-container--with-toolbar":t}},f=function(t,e){return{"nw-disabled":t,"nw-invisible":e}},b=function(t){return{disabled:t}},v=function(){function t(t,n,o){this._ngWigToolbarService=t,this.document=n,this.window=o,this.contentChange=new e.EventEmitter,this.editMode=!1,this.toolbarButtons=[],this.hasFocus=!1,this.propagateChange=function(t){},this.propagateTouched=function(){}}return t.prototype.execCommand=function(t,e){if("function"==typeof t)return t(this),!0;if(this.editMode)return!1;if(this.document.queryCommandSupported&&!this.document.queryCommandSupported(t))throw new Error('The command "'+t+'" is not supported');if(("createlink"===t||"insertImage"===t)&&!(e=window.prompt("Please enter the URL","http://")||""))return!1;this.container.focus();var n=this.document.getSelection().toString();return"createlink"===t&&""===n?this.document.execCommand("insertHtml",!1,'<a href="'+e+'">'+e+"</a>"):this.document.execCommand(t,!1,e),this.onContentChange(this.container.innerHTML),!0},t.prototype.ngOnInit=function(){this.toolbarButtons=this._ngWigToolbarService.getToolbarButtons(this.buttons),this.container=this.ngxWigEditable.nativeElement,this.content&&(this.container.innerHTML=this.content)},t.prototype.ngAfterViewInit=function(){var t=this;window.document.documentMode&&(this._mutationObserver=new MutationObserver((function(){t.onContentChange(t.container.innerHTML)})),this._mutationObserver.observe(this.container,{childList:!0,subtree:!0,characterData:!0}))},t.prototype.ngOnDestroy=function(){this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.onContentChange=function(t){this.content=t,this.contentChange.emit(this.content),this.propagateChange(this.content)},t.prototype.ngOnChanges=function(t){this.container&&t.content&&(this.container.innerHTML="",this.pasteHtmlAtCaret(t.content.currentValue))},t.prototype.onTextareaChange=function(t){this.container.innerHTML=t,this.onContentChange(t)},t.prototype.writeValue=function(t){t||(t=""),this.container.innerHTML=t,this.content=t},t.prototype.shouldShowPlaceholder=function(){return!!this.placeholder&&!this.container.innerText},t.prototype.pasteHtmlAtCaret=function(t){var e,n;if(window.getSelection&&(e=window.getSelection()).getRangeAt&&e.rangeCount){(n=e.getRangeAt(0)).deleteContents();var o=this.document.createElement("div");o.innerHTML=t;for(var i=this.document.createDocumentFragment(),r=void 0,a=void 0;r=o.firstChild;)a=i.appendChild(r);n.insertNode(i),a&&((n=n.cloneRange()).setStartAfter(a),n.collapse(!0),e.removeAllRanges(),e.addRange(n))}},t.prototype.registerOnChange=function(t){this.propagateChange=t},t.prototype.registerOnTouched=function(t){this.propagateTouched=t},t.prototype.onBlur=function(){this.hasFocus=!1,this.propagateTouched()},t.prototype.setDisabledState=function(t){this.disabled=t},t.ɵfac=function(n){return new(n||t)(e["ɵɵdirectiveInject"](l),e["ɵɵdirectiveInject"](o.DOCUMENT),e["ɵɵdirectiveInject"]("WINDOW"))},t.ɵcmp=e["ɵɵdefineComponent"]({type:t,selectors:[["ngx-wig"]],viewQuery:function(t,n){var o;(1&t&&e["ɵɵstaticViewQuery"](s,!0,e.ElementRef),2&t)&&(e["ɵɵqueryRefresh"](o=e["ɵɵloadQuery"]())&&(n.ngxWigEditable=o.first))},inputs:{content:"content",placeholder:"placeholder",buttons:"buttons",disabled:"disabled"},outputs:{contentChange:"contentChange"},features:[e["ɵɵProvidersFeature"]([l,{provide:n.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0}]),e["ɵɵNgOnChangesFeature"]],decls:9,vars:14,consts:[[1,"ng-wig"],[1,"nw-toolbar"],["class","nw-toolbar__item",4,"ngFor","ngForOf"],[1,"nw-editor-container",3,"ngClass","click"],["class","nw-editor__src-container",4,"ngIf"],[1,"nw-editor",3,"ngClass"],["class","nw-editor__placeholder",3,"innerText",4,"ngIf"],[1,"nw-editor__res",3,"ngClass","focus","blur","input"],["ngWigEditable",""],[1,"nw-toolbar__item"],["type","button","tabindex","-1",1,"nw-button",3,"ngClass","title","disabled","click"],[4,"ngIf"],["class","icon",3,"ngClass",4,"ngIf"],[1,"icon",3,"ngClass"],[1,"nw-editor__src-container"],[1,"nw-editor__src",3,"ngModel","ngModelChange","blur"],[1,"nw-editor__placeholder",3,"innerText"]],template:function(t,n){if(1&t){var o=e["ɵɵgetCurrentView"]();e["ɵɵelementStart"](0,"div",0),e["ɵɵelementStart"](1,"ul",1),e["ɵɵtemplate"](2,p,5,7,"li",2),e["ɵɵelementEnd"](),e["ɵɵelementStart"](3,"div",3),e["ɵɵlistener"]("click",(function(){return n.container.focus()})),e["ɵɵtemplate"](4,g,3,1,"div",4),e["ɵɵelementStart"](5,"div",5),e["ɵɵtemplate"](6,h,1,1,"div",6),e["ɵɵelementStart"](7,"div",7,8),e["ɵɵlistener"]("focus",(function(){return n.hasFocus=!0}))("blur",(function(){return n.onBlur()}))("input",(function(){e["ɵɵrestoreView"](o);var t=e["ɵɵreference"](8);return n.onContentChange(t.innerHTML)})),e["ɵɵelementEnd"](),e["ɵɵelementEnd"](),e["ɵɵelementEnd"](),e["ɵɵelementEnd"]()}2&t&&(e["ɵɵadvance"](2),e["ɵɵproperty"]("ngForOf",n.toolbarButtons),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngClass",e["ɵɵpureFunction1"](7,m,n.toolbarButtons.length)),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngIf",n.editMode),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngClass",e["ɵɵpureFunction2"](9,f,n.disabled,n.editMode)),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngIf",n.shouldShowPlaceholder()),e["ɵɵadvance"](1),e["ɵɵproperty"]("ngClass",e["ɵɵpureFunction1"](12,b,n.disabled)),e["ɵɵattribute"]("contenteditable",!n.disabled))},directives:[o.NgForOf,o.NgClass,o.NgIf,n.DefaultValueAccessor,n.NgControlStatus,n.NgModel],styles:[".ng-wig,[class^=nw-]{-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ng-wig{display:block;padding:0;margin:0}.nw-toolbar{display:block;margin:0;padding:0;list-style:none;font-size:12px;color:#6b7277;background:linear-gradient(180deg,#fff 0,#f9f9f9 100%);border:1px solid #ccc;border-radius:3px 3px 0 0}.nw-toolbar__item{display:inline-block;vertical-align:top;margin:0;border-right:1px solid #dedede}.nw-toolbar label{line-height:30px;display:inline-block;padding:0 6px 0 3px}.nw-toolbar input[type=checkbox]{vertical-align:-3px;margin-right:-1px}.nw-editor{display:block;position:relative;height:300px;background:#fff;cursor:text;width:100%;overflow-y:auto}.nw-editor-container{border:1px solid #ccc;border-radius:0 0 3px 3px;position:relative}.nw-editor-container--with-toolbar{border-top:none}.nw-editor__res{display:block;min-height:100%;padding:1px 8px}.nw-editor__placeholder{display:block;position:absolute;padding:1px 8px;color:#d3d3d3;width:100%}.nw-editor__res,.nw-editor__src{width:100%;outline:0;box-sizing:border-box;border:none;margin:0}.nw-editor__res.disabled{opacity:.5}.nw-editor__src-container{position:absolute;left:0;top:0;right:0;bottom:0}.nw-editor__src{height:100%;resize:none;padding:1px 8px}.nw-editor--fixed .nw-editor{display:block;overflow-y:auto}.nw-editor--fixed .nw-editor__res{padding:1px 8px;display:block}.nw-invisible{visibility:hidden}.nw-editor--fixed .nw-invisible{display:none}.nw-editor.nw-disabled{cursor:default}.nw-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:30px;height:30px;margin:0;padding:0;opacity:.5;line-height:30px;background-color:transparent;background-position:center center;background-repeat:no-repeat;border:none;border-radius:2px;cursor:pointer}.nw-button:focus{outline:0;border-color:#d3d3d3;border-style:solid}.nw-button.nw-button--active,.nw-button:hover{opacity:1}.nw-button--active{background-color:#eee}.nw-button:disabled{cursor:default}.nw-button:disabled:hover{opacity:.5}.nw-content{padding:12px;margin:0;font-family:sans-serif;font-size:14px;line-height:24px}.nw-select{height:30px;padding:6px;color:#555;background-color:inherit;border:0}.nw-select:disabled{opacity:.5}.nw-select:focus{outline:0}[contenteditable]:empty:before{content:attr(placeholder);color:grey;display:inline-block}.icon{display:inline-block;height:1em;width:1em;vertical-align:-.125em}.icon-bold{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68 .5t68 .5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z'/%3E%3C/svg%3E\") no-repeat}.icon-check{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z'/%3E%3C/svg%3E\") no-repeat}.icon-italic{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M384 1662l17-85q22-7 61.5-16.5t72-19 59.5-23.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z'/%3E%3C/svg%3E\") no-repeat}.icon-link{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z'/%3E%3C/svg%3E\") no-repeat}.icon-list-ol{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-121.5t.5-121.5v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z'/%3E%3C/svg%3E\") no-repeat}.icon-list-ul{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z'/%3E%3C/svg%3E\") no-repeat}.icon-underline{background:url(\"data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg width='11' height='11' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z'/%3E%3C/svg%3E\") no-repeat}"],encapsulation:2}),t}();function w(){return window}var q=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:a,multi:!0,useValue:e&&(null==e?void 0:e.buttonsConfig)?null==e?void 0:e.buttonsConfig:r},{provide:"WINDOW",useFactory:w}]}},t.forChild=function(){return{ngModule:t}},t.ɵmod=e["ɵɵdefineNgModule"]({type:t}),t.ɵinj=e["ɵɵdefineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:a,multi:!0,useValue:r},{provide:"WINDOW",useFactory:w}],imports:[[o.CommonModule,n.FormsModule]]}),t}();("undefined"==typeof ngJitMode||ngJitMode)&&e["ɵɵsetNgModuleScope"](q,{declarations:[v],imports:[o.CommonModule,n.FormsModule],exports:[v]}),t.BUTTONS=a,t.CUSTOM_LIBRARY_BUTTONS={edithtml:{label:"Edit HTML",title:"Edit HTML",command:function(t){t.editMode=!t.editMode},styleClass:"nw-button--source",icon:""}},t.DEFAULT_LIBRARY_BUTTONS=r,t.NgxWigComponent=v,t.NgxWigModule=q,t.NgxWigToolbarService=l,t.getWindowObject=w,Object.defineProperty(t,"__esModule",{value:!0})}));
16//# sourceMappingURL=ngx-wig.umd.min.js.map
\No newline at end of file