@kolkov/angular-editor 1.1.6 → 2.0.0

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +21 -0
  3. package/README.md +4 -2
  4. package/esm2020/kolkov-angular-editor.mjs +5 -0
  5. package/esm2020/lib/ae-select/ae-select.component.mjs +185 -0
  6. package/esm2020/lib/angular-editor-toolbar.component.mjs +363 -0
  7. package/esm2020/lib/angular-editor.component.mjs +410 -0
  8. package/esm2020/lib/angular-editor.module.mjs +25 -0
  9. package/esm2020/lib/angular-editor.service.mjs +274 -0
  10. package/{esm2015/lib/config.js → esm2020/lib/config.mjs} +1 -1
  11. package/{esm2015/lib/utils.js → esm2020/lib/utils.mjs} +0 -0
  12. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  13. package/fesm2015/kolkov-angular-editor.mjs +1288 -0
  14. package/fesm2015/kolkov-angular-editor.mjs.map +1 -0
  15. package/fesm2020/kolkov-angular-editor.mjs +1282 -0
  16. package/fesm2020/kolkov-angular-editor.mjs.map +1 -0
  17. package/kolkov-angular-editor.d.ts +1 -1
  18. package/lib/ae-select/ae-select.component.d.ts +3 -0
  19. package/lib/angular-editor-toolbar.component.d.ts +3 -0
  20. package/lib/angular-editor.component.d.ts +4 -0
  21. package/lib/angular-editor.module.d.ts +9 -0
  22. package/lib/angular-editor.service.d.ts +3 -0
  23. package/lib/config.d.ts +1 -0
  24. package/package.json +23 -14
  25. package/bundles/kolkov-angular-editor.umd.js +0 -1589
  26. package/bundles/kolkov-angular-editor.umd.js.map +0 -1
  27. package/esm2015/kolkov-angular-editor.js +0 -6
  28. package/esm2015/lib/ae-select/ae-select.component.js +0 -173
  29. package/esm2015/lib/angular-editor-toolbar.component.js +0 -353
  30. package/esm2015/lib/angular-editor.component.js +0 -375
  31. package/esm2015/lib/angular-editor.module.js +0 -18
  32. package/esm2015/lib/angular-editor.service.js +0 -272
  33. package/fesm2015/kolkov-angular-editor.js +0 -1225
  34. package/fesm2015/kolkov-angular-editor.js.map +0 -1
  35. package/kolkov-angular-editor.metadata.json +0 -1
@@ -1,1589 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser')) :
3
- typeof define === 'function' && define.amd ? define('@kolkov/angular-editor', ['exports', '@angular/core', '@angular/common/http', '@angular/common', '@angular/forms', '@angular/platform-browser'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.kolkov = global.kolkov || {}, global.kolkov['angular-editor'] = {}), global.ng.core, global.ng.common.http, global.ng.common, global.ng.forms, global.ng.platformBrowser));
5
- }(this, (function (exports, core, http, common, forms, platformBrowser) { 'use strict';
6
-
7
- var AngularEditorService = /** @class */ (function () {
8
- function AngularEditorService(http, doc) {
9
- var _this = this;
10
- this.http = http;
11
- this.doc = doc;
12
- /**
13
- * save selection when the editor is focussed out
14
- */
15
- this.saveSelection = function () {
16
- if (_this.doc.getSelection) {
17
- var sel = _this.doc.getSelection();
18
- if (sel.getRangeAt && sel.rangeCount) {
19
- _this.savedSelection = sel.getRangeAt(0);
20
- _this.selectedText = sel.toString();
21
- }
22
- }
23
- else if (_this.doc.getSelection && _this.doc.createRange) {
24
- _this.savedSelection = document.createRange();
25
- }
26
- else {
27
- _this.savedSelection = null;
28
- }
29
- };
30
- }
31
- /**
32
- * Executed command from editor header buttons exclude toggleEditorMode
33
- * @param command string from triggerCommand
34
- */
35
- AngularEditorService.prototype.executeCommand = function (command) {
36
- var commands = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'pre'];
37
- if (commands.includes(command)) {
38
- this.doc.execCommand('formatBlock', false, command);
39
- return;
40
- }
41
- this.doc.execCommand(command, false, null);
42
- };
43
- /**
44
- * Create URL link
45
- * @param url string from UI prompt
46
- */
47
- AngularEditorService.prototype.createLink = function (url) {
48
- if (!url.includes('http')) {
49
- this.doc.execCommand('createlink', false, url);
50
- }
51
- else {
52
- var newUrl = '<a href="' + url + '" target="_blank">' + this.selectedText + '</a>';
53
- this.insertHtml(newUrl);
54
- }
55
- };
56
- /**
57
- * insert color either font or background
58
- *
59
- * @param color color to be inserted
60
- * @param where where the color has to be inserted either text/background
61
- */
62
- AngularEditorService.prototype.insertColor = function (color, where) {
63
- var restored = this.restoreSelection();
64
- if (restored) {
65
- if (where === 'textColor') {
66
- this.doc.execCommand('foreColor', false, color);
67
- }
68
- else {
69
- this.doc.execCommand('hiliteColor', false, color);
70
- }
71
- }
72
- };
73
- /**
74
- * Set font name
75
- * @param fontName string
76
- */
77
- AngularEditorService.prototype.setFontName = function (fontName) {
78
- this.doc.execCommand('fontName', false, fontName);
79
- };
80
- /**
81
- * Set font size
82
- * @param fontSize string
83
- */
84
- AngularEditorService.prototype.setFontSize = function (fontSize) {
85
- this.doc.execCommand('fontSize', false, fontSize);
86
- };
87
- /**
88
- * Create raw HTML
89
- * @param html HTML string
90
- */
91
- AngularEditorService.prototype.insertHtml = function (html) {
92
- var isHTMLInserted = this.doc.execCommand('insertHTML', false, html);
93
- if (!isHTMLInserted) {
94
- throw new Error('Unable to perform the operation');
95
- }
96
- };
97
- /**
98
- * restore selection when the editor is focused in
99
- *
100
- * saved selection when the editor is focused out
101
- */
102
- AngularEditorService.prototype.restoreSelection = function () {
103
- if (this.savedSelection) {
104
- if (this.doc.getSelection) {
105
- var sel = this.doc.getSelection();
106
- sel.removeAllRanges();
107
- sel.addRange(this.savedSelection);
108
- return true;
109
- }
110
- else if (this.doc.getSelection /*&& this.savedSelection.select*/) {
111
- // this.savedSelection.select();
112
- return true;
113
- }
114
- }
115
- else {
116
- return false;
117
- }
118
- };
119
- /**
120
- * setTimeout used for execute 'saveSelection' method in next event loop iteration
121
- */
122
- AngularEditorService.prototype.executeInNextQueueIteration = function (callbackFn, timeout) {
123
- if (timeout === void 0) { timeout = 1e2; }
124
- setTimeout(callbackFn, timeout);
125
- };
126
- /** check any selection is made or not */
127
- AngularEditorService.prototype.checkSelection = function () {
128
- var selectedText = this.savedSelection.toString();
129
- if (selectedText.length === 0) {
130
- throw new Error('No Selection Made');
131
- }
132
- return true;
133
- };
134
- /**
135
- * Upload file to uploadUrl
136
- * @param file The file
137
- */
138
- AngularEditorService.prototype.uploadImage = function (file) {
139
- var uploadData = new FormData();
140
- uploadData.append('file', file, file.name);
141
- return this.http.post(this.uploadUrl, uploadData, {
142
- reportProgress: true,
143
- observe: 'events',
144
- withCredentials: this.uploadWithCredentials,
145
- });
146
- };
147
- /**
148
- * Insert image with Url
149
- * @param imageUrl The imageUrl.
150
- */
151
- AngularEditorService.prototype.insertImage = function (imageUrl) {
152
- this.doc.execCommand('insertImage', false, imageUrl);
153
- };
154
- AngularEditorService.prototype.setDefaultParagraphSeparator = function (separator) {
155
- this.doc.execCommand('defaultParagraphSeparator', false, separator);
156
- };
157
- AngularEditorService.prototype.createCustomClass = function (customClass) {
158
- var newTag = this.selectedText;
159
- if (customClass) {
160
- var tagName = customClass.tag ? customClass.tag : 'span';
161
- newTag = '<' + tagName + ' class="' + customClass.class + '">' + this.selectedText + '</' + tagName + '>';
162
- }
163
- this.insertHtml(newTag);
164
- };
165
- AngularEditorService.prototype.insertVideo = function (videoUrl) {
166
- if (videoUrl.match('www.youtube.com')) {
167
- this.insertYouTubeVideoTag(videoUrl);
168
- }
169
- if (videoUrl.match('vimeo.com')) {
170
- this.insertVimeoVideoTag(videoUrl);
171
- }
172
- };
173
- AngularEditorService.prototype.insertYouTubeVideoTag = function (videoUrl) {
174
- var id = videoUrl.split('v=')[1];
175
- var imageUrl = "https://img.youtube.com/vi/" + id + "/0.jpg";
176
- var thumbnail = "\n <div style='position: relative'>\n <img style='position: absolute; left:200px; top:140px'\n src=\"https://img.icons8.com/color/96/000000/youtube-play.png\"/>\n <a href='" + videoUrl + "' target='_blank'>\n <img src=\"" + imageUrl + "\" alt=\"click to watch\"/>\n </a>\n </div>";
177
- this.insertHtml(thumbnail);
178
- };
179
- AngularEditorService.prototype.insertVimeoVideoTag = function (videoUrl) {
180
- var _this = this;
181
- var sub = this.http.get("https://vimeo.com/api/oembed.json?url=" + videoUrl).subscribe(function (data) {
182
- var imageUrl = data.thumbnail_url_with_play_button;
183
- var thumbnail = "<div>\n <a href='" + videoUrl + "' target='_blank'>\n <img src=\"" + imageUrl + "\" alt=\"" + data.title + "\"/>\n </a>\n </div>";
184
- _this.insertHtml(thumbnail);
185
- sub.unsubscribe();
186
- });
187
- };
188
- AngularEditorService.prototype.nextNode = function (node) {
189
- if (node.hasChildNodes()) {
190
- return node.firstChild;
191
- }
192
- else {
193
- while (node && !node.nextSibling) {
194
- node = node.parentNode;
195
- }
196
- if (!node) {
197
- return null;
198
- }
199
- return node.nextSibling;
200
- }
201
- };
202
- AngularEditorService.prototype.getRangeSelectedNodes = function (range, includePartiallySelectedContainers) {
203
- var node = range.startContainer;
204
- var endNode = range.endContainer;
205
- var rangeNodes = [];
206
- // Special case for a range that is contained within a single node
207
- if (node === endNode) {
208
- rangeNodes = [node];
209
- }
210
- else {
211
- // Iterate nodes until we hit the end container
212
- while (node && node !== endNode) {
213
- rangeNodes.push(node = this.nextNode(node));
214
- }
215
- // Add partially selected nodes at the start of the range
216
- node = range.startContainer;
217
- while (node && node !== range.commonAncestorContainer) {
218
- rangeNodes.unshift(node);
219
- node = node.parentNode;
220
- }
221
- }
222
- // Add ancestors of the range container, if required
223
- if (includePartiallySelectedContainers) {
224
- node = range.commonAncestorContainer;
225
- while (node) {
226
- rangeNodes.push(node);
227
- node = node.parentNode;
228
- }
229
- }
230
- return rangeNodes;
231
- };
232
- AngularEditorService.prototype.getSelectedNodes = function () {
233
- var nodes = [];
234
- if (this.doc.getSelection) {
235
- var sel = this.doc.getSelection();
236
- for (var i = 0, len = sel.rangeCount; i < len; ++i) {
237
- nodes.push.apply(nodes, this.getRangeSelectedNodes(sel.getRangeAt(i), true));
238
- }
239
- }
240
- return nodes;
241
- };
242
- AngularEditorService.prototype.replaceWithOwnChildren = function (el) {
243
- var parent = el.parentNode;
244
- while (el.hasChildNodes()) {
245
- parent.insertBefore(el.firstChild, el);
246
- }
247
- parent.removeChild(el);
248
- };
249
- AngularEditorService.prototype.removeSelectedElements = function (tagNames) {
250
- var _this = this;
251
- var tagNamesArray = tagNames.toLowerCase().split(',');
252
- this.getSelectedNodes().forEach(function (node) {
253
- if (node.nodeType === 1 &&
254
- tagNamesArray.indexOf(node.tagName.toLowerCase()) > -1) {
255
- // Remove the node and replace it with its children
256
- _this.replaceWithOwnChildren(node);
257
- }
258
- });
259
- };
260
- return AngularEditorService;
261
- }());
262
- AngularEditorService.decorators = [
263
- { type: core.Injectable }
264
- ];
265
- AngularEditorService.ctorParameters = function () { return [
266
- { type: http.HttpClient },
267
- { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
268
- ]; };
269
-
270
- var angularEditorConfig = {
271
- editable: true,
272
- spellcheck: true,
273
- height: 'auto',
274
- minHeight: '0',
275
- maxHeight: 'auto',
276
- width: 'auto',
277
- minWidth: '0',
278
- translate: 'yes',
279
- enableToolbar: true,
280
- showToolbar: true,
281
- placeholder: 'Enter text here...',
282
- defaultParagraphSeparator: '',
283
- defaultFontName: '',
284
- defaultFontSize: '',
285
- fonts: [
286
- { class: 'arial', name: 'Arial' },
287
- { class: 'times-new-roman', name: 'Times New Roman' },
288
- { class: 'calibri', name: 'Calibri' },
289
- { class: 'comic-sans-ms', name: 'Comic Sans MS' }
290
- ],
291
- uploadUrl: 'v1/image',
292
- uploadWithCredentials: false,
293
- sanitize: true,
294
- toolbarPosition: 'top',
295
- outline: true,
296
- /*toolbarHiddenButtons: [
297
- ['bold', 'italic', 'underline', 'strikeThrough', 'superscript', 'subscript'],
298
- ['heading', 'fontName', 'fontSize', 'color'],
299
- ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull', 'indent', 'outdent'],
300
- ['cut', 'copy', 'delete', 'removeFormat', 'undo', 'redo'],
301
- ['paragraph', 'blockquote', 'removeBlockquote', 'horizontalLine', 'orderedList', 'unorderedList'],
302
- ['link', 'unlink', 'image', 'video']
303
- ]*/
304
- };
305
-
306
- function isDefined(value) {
307
- return value !== undefined && value !== null;
308
- }
309
-
310
- var AngularEditorComponent = /** @class */ (function () {
311
- function AngularEditorComponent(r, editorService, doc, sanitizer, cdRef, defaultTabIndex, autoFocus) {
312
- this.r = r;
313
- this.editorService = editorService;
314
- this.doc = doc;
315
- this.sanitizer = sanitizer;
316
- this.cdRef = cdRef;
317
- this.autoFocus = autoFocus;
318
- this.modeVisual = true;
319
- this.showPlaceholder = false;
320
- this.disabled = false;
321
- this.focused = false;
322
- this.touched = false;
323
- this.changed = false;
324
- this.id = '';
325
- this.config = angularEditorConfig;
326
- this.placeholder = '';
327
- this.viewMode = new core.EventEmitter();
328
- /** emits `blur` event when focused out from the textarea */
329
- // tslint:disable-next-line:no-output-native no-output-rename
330
- this.blurEvent = new core.EventEmitter();
331
- /** emits `focus` event when focused in to the textarea */
332
- // tslint:disable-next-line:no-output-rename no-output-native
333
- this.focusEvent = new core.EventEmitter();
334
- this.tabindex = -1;
335
- var parsedTabIndex = Number(defaultTabIndex);
336
- this.tabIndex = (parsedTabIndex || parsedTabIndex === 0) ? parsedTabIndex : null;
337
- }
338
- AngularEditorComponent.prototype.onFocus = function () {
339
- this.focus();
340
- };
341
- AngularEditorComponent.prototype.ngOnInit = function () {
342
- this.config.toolbarPosition = this.config.toolbarPosition ? this.config.toolbarPosition : angularEditorConfig.toolbarPosition;
343
- };
344
- AngularEditorComponent.prototype.ngAfterViewInit = function () {
345
- if (isDefined(this.autoFocus)) {
346
- this.focus();
347
- }
348
- };
349
- /**
350
- * Executed command from editor header buttons
351
- * @param command string from triggerCommand
352
- */
353
- AngularEditorComponent.prototype.executeCommand = function (command) {
354
- this.focus();
355
- if (command === 'focus') {
356
- return;
357
- }
358
- if (command === 'toggleEditorMode') {
359
- this.toggleEditorMode(this.modeVisual);
360
- }
361
- else if (command !== '') {
362
- if (command === 'clear') {
363
- this.editorService.removeSelectedElements(this.getCustomTags());
364
- this.onContentChange(this.textArea.nativeElement);
365
- }
366
- else if (command === 'default') {
367
- this.editorService.removeSelectedElements('h1,h2,h3,h4,h5,h6,p,pre');
368
- this.onContentChange(this.textArea.nativeElement);
369
- }
370
- else {
371
- this.editorService.executeCommand(command);
372
- }
373
- this.exec();
374
- }
375
- };
376
- /**
377
- * focus event
378
- */
379
- AngularEditorComponent.prototype.onTextAreaFocus = function (event) {
380
- var _this = this;
381
- if (this.focused) {
382
- event.stopPropagation();
383
- return;
384
- }
385
- this.focused = true;
386
- this.focusEvent.emit(event);
387
- if (!this.touched || !this.changed) {
388
- this.editorService.executeInNextQueueIteration(function () {
389
- _this.configure();
390
- _this.touched = true;
391
- });
392
- }
393
- };
394
- /**
395
- * @description fires when cursor leaves textarea
396
- */
397
- AngularEditorComponent.prototype.onTextAreaMouseOut = function (event) {
398
- this.editorService.saveSelection();
399
- };
400
- /**
401
- * blur event
402
- */
403
- AngularEditorComponent.prototype.onTextAreaBlur = function (event) {
404
- /**
405
- * save selection if focussed out
406
- */
407
- this.editorService.executeInNextQueueIteration(this.editorService.saveSelection);
408
- if (typeof this.onTouched === 'function') {
409
- this.onTouched();
410
- }
411
- if (event.relatedTarget !== null) {
412
- var parent = event.relatedTarget.parentElement;
413
- if (!parent.classList.contains('angular-editor-toolbar-set') && !parent.classList.contains('ae-picker')) {
414
- this.blurEvent.emit(event);
415
- this.focused = false;
416
- }
417
- }
418
- };
419
- /**
420
- * focus the text area when the editor is focused
421
- */
422
- AngularEditorComponent.prototype.focus = function () {
423
- if (this.modeVisual) {
424
- this.textArea.nativeElement.focus();
425
- }
426
- else {
427
- var sourceText = this.doc.getElementById('sourceText' + this.id);
428
- sourceText.focus();
429
- this.focused = true;
430
- }
431
- };
432
- /**
433
- * Executed from the contenteditable section while the input property changes
434
- * @param element html element from contenteditable
435
- */
436
- AngularEditorComponent.prototype.onContentChange = function (element) {
437
- var html = '';
438
- if (this.modeVisual) {
439
- html = element.innerHTML;
440
- }
441
- else {
442
- html = element.innerText;
443
- }
444
- if ((!html || html === '<br>')) {
445
- html = '';
446
- }
447
- if (typeof this.onChange === 'function') {
448
- this.onChange(this.config.sanitize || this.config.sanitize === undefined ?
449
- this.sanitizer.sanitize(core.SecurityContext.HTML, html) : html);
450
- if ((!html) !== this.showPlaceholder) {
451
- this.togglePlaceholder(this.showPlaceholder);
452
- }
453
- }
454
- this.changed = true;
455
- };
456
- /**
457
- * Set the function to be called
458
- * when the control receives a change event.
459
- *
460
- * @param fn a function
461
- */
462
- AngularEditorComponent.prototype.registerOnChange = function (fn) {
463
- this.onChange = function (e) { return (e === '<br>' ? fn('') : fn(e)); };
464
- };
465
- /**
466
- * Set the function to be called
467
- * when the control receives a touch event.
468
- *
469
- * @param fn a function
470
- */
471
- AngularEditorComponent.prototype.registerOnTouched = function (fn) {
472
- this.onTouched = fn;
473
- };
474
- /**
475
- * Write a new value to the element.
476
- *
477
- * @param value value to be executed when there is a change in contenteditable
478
- */
479
- AngularEditorComponent.prototype.writeValue = function (value) {
480
- if ((!value || value === '<br>' || value === '') !== this.showPlaceholder) {
481
- this.togglePlaceholder(this.showPlaceholder);
482
- }
483
- if (value === undefined || value === '' || value === '<br>') {
484
- value = null;
485
- }
486
- this.refreshView(value);
487
- };
488
- /**
489
- * refresh view/HTML of the editor
490
- *
491
- * @param value html string from the editor
492
- */
493
- AngularEditorComponent.prototype.refreshView = function (value) {
494
- var normalizedValue = value === null ? '' : value;
495
- this.r.setProperty(this.textArea.nativeElement, 'innerHTML', normalizedValue);
496
- return;
497
- };
498
- /**
499
- * toggles placeholder based on input string
500
- *
501
- * @param value A HTML string from the editor
502
- */
503
- AngularEditorComponent.prototype.togglePlaceholder = function (value) {
504
- if (!value) {
505
- this.r.addClass(this.editorWrapper.nativeElement, 'show-placeholder');
506
- this.showPlaceholder = true;
507
- }
508
- else {
509
- this.r.removeClass(this.editorWrapper.nativeElement, 'show-placeholder');
510
- this.showPlaceholder = false;
511
- }
512
- };
513
- /**
514
- * Implements disabled state for this element
515
- *
516
- * @param isDisabled Disabled flag
517
- */
518
- AngularEditorComponent.prototype.setDisabledState = function (isDisabled) {
519
- var div = this.textArea.nativeElement;
520
- var action = isDisabled ? 'addClass' : 'removeClass';
521
- this.r[action](div, 'disabled');
522
- this.disabled = isDisabled;
523
- };
524
- /**
525
- * toggles editor mode based on bToSource bool
526
- *
527
- * @param bToSource A boolean value from the editor
528
- */
529
- AngularEditorComponent.prototype.toggleEditorMode = function (bToSource) {
530
- var _this = this;
531
- var oContent;
532
- var editableElement = this.textArea.nativeElement;
533
- if (bToSource) {
534
- oContent = this.r.createText(editableElement.innerHTML);
535
- this.r.setProperty(editableElement, 'innerHTML', '');
536
- this.r.setProperty(editableElement, 'contentEditable', false);
537
- var oPre = this.r.createElement('pre');
538
- this.r.setStyle(oPre, 'margin', '0');
539
- this.r.setStyle(oPre, 'outline', 'none');
540
- var oCode = this.r.createElement('code');
541
- this.r.setProperty(oCode, 'id', 'sourceText' + this.id);
542
- this.r.setStyle(oCode, 'display', 'block');
543
- this.r.setStyle(oCode, 'white-space', 'pre-wrap');
544
- this.r.setStyle(oCode, 'word-break', 'keep-all');
545
- this.r.setStyle(oCode, 'outline', 'none');
546
- this.r.setStyle(oCode, 'margin', '0');
547
- this.r.setStyle(oCode, 'background-color', '#fff5b9');
548
- this.r.setProperty(oCode, 'contentEditable', true);
549
- this.r.appendChild(oCode, oContent);
550
- this.focusInstance = this.r.listen(oCode, 'focus', function (event) { return _this.onTextAreaFocus(event); });
551
- this.blurInstance = this.r.listen(oCode, 'blur', function (event) { return _this.onTextAreaBlur(event); });
552
- this.r.appendChild(oPre, oCode);
553
- this.r.appendChild(editableElement, oPre);
554
- // ToDo move to service
555
- this.doc.execCommand('defaultParagraphSeparator', false, 'div');
556
- this.modeVisual = false;
557
- this.viewMode.emit(false);
558
- oCode.focus();
559
- }
560
- else {
561
- if (this.doc.querySelectorAll) {
562
- this.r.setProperty(editableElement, 'innerHTML', editableElement.innerText);
563
- }
564
- else {
565
- oContent = this.doc.createRange();
566
- oContent.selectNodeContents(editableElement.firstChild);
567
- this.r.setProperty(editableElement, 'innerHTML', oContent.toString());
568
- }
569
- this.r.setProperty(editableElement, 'contentEditable', true);
570
- this.modeVisual = true;
571
- this.viewMode.emit(true);
572
- this.onContentChange(editableElement);
573
- editableElement.focus();
574
- }
575
- this.editorToolbar.setEditorMode(!this.modeVisual);
576
- };
577
- /**
578
- * toggles editor buttons when cursor moved or positioning
579
- *
580
- * Send a node array from the contentEditable of the editor
581
- */
582
- AngularEditorComponent.prototype.exec = function () {
583
- this.editorToolbar.triggerButtons();
584
- var userSelection;
585
- if (this.doc.getSelection) {
586
- userSelection = this.doc.getSelection();
587
- this.editorService.executeInNextQueueIteration(this.editorService.saveSelection);
588
- }
589
- var a = userSelection.focusNode;
590
- var els = [];
591
- while (a && a.id !== 'editor') {
592
- els.unshift(a);
593
- a = a.parentNode;
594
- }
595
- this.editorToolbar.triggerBlocks(els);
596
- };
597
- AngularEditorComponent.prototype.configure = function () {
598
- this.editorService.uploadUrl = this.config.uploadUrl;
599
- this.editorService.uploadWithCredentials = this.config.uploadWithCredentials;
600
- if (this.config.defaultParagraphSeparator) {
601
- this.editorService.setDefaultParagraphSeparator(this.config.defaultParagraphSeparator);
602
- }
603
- if (this.config.defaultFontName) {
604
- this.editorService.setFontName(this.config.defaultFontName);
605
- }
606
- if (this.config.defaultFontSize) {
607
- this.editorService.setFontSize(this.config.defaultFontSize);
608
- }
609
- };
610
- AngularEditorComponent.prototype.getFonts = function () {
611
- var fonts = this.config.fonts ? this.config.fonts : angularEditorConfig.fonts;
612
- return fonts.map(function (x) {
613
- return { label: x.name, value: x.name };
614
- });
615
- };
616
- AngularEditorComponent.prototype.getCustomTags = function () {
617
- var tags = ['span'];
618
- this.config.customClasses.forEach(function (x) {
619
- if (x.tag !== undefined) {
620
- if (!tags.includes(x.tag)) {
621
- tags.push(x.tag);
622
- }
623
- }
624
- });
625
- return tags.join(',');
626
- };
627
- AngularEditorComponent.prototype.ngOnDestroy = function () {
628
- if (this.blurInstance) {
629
- this.blurInstance();
630
- }
631
- if (this.focusInstance) {
632
- this.focusInstance();
633
- }
634
- };
635
- AngularEditorComponent.prototype.filterStyles = function (html) {
636
- html = html.replace('position: fixed;', '');
637
- return html;
638
- };
639
- return AngularEditorComponent;
640
- }());
641
- AngularEditorComponent.decorators = [
642
- { type: core.Component, args: [{
643
- selector: 'angular-editor',
644
- template: "<div\n class=\"angular-editor\"\n #angularEditor\n [style.width]=\"config.width\"\n [style.minWidth]=\"config.minWidth\"\n>\n <angular-editor-toolbar\n *ngIf=\"config.toolbarPosition === 'top'\"\n #editorToolbar\n [id]=\"id\"\n [uploadUrl]=\"config.uploadUrl\"\n [upload]=\"config.upload\"\n [showToolbar]=\"config.showToolbar !== undefined ? config.showToolbar : true\"\n [fonts]=\"getFonts()\"\n [customClasses]=\"config.customClasses\"\n [defaultFontName]=\"config.defaultFontName\"\n [defaultFontSize]=\"config.defaultFontSize\"\n [hiddenButtons]=\"config.toolbarHiddenButtons\"\n (execute)=\"executeCommand($event)\"\n ></angular-editor-toolbar>\n\n <div\n class=\"angular-editor-wrapper\"\n #editorWrapper\n >\n <div\n #editor\n class=\"angular-editor-textarea\"\n [attr.contenteditable]=\"config.editable\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [attr.translate]=\"config.translate\"\n [attr.spellcheck]=\"config.spellcheck\"\n [style.height]=\"config.height\"\n [style.minHeight]=\"config.minHeight\"\n [style.maxHeight]=\"config.maxHeight\"\n [style.outline]=\"config.outline === false ? 'none': undefined\"\n (input)=\"onContentChange($event.target)\"\n (focus)=\"onTextAreaFocus($event)\"\n (blur)=\"onTextAreaBlur($event)\"\n (click)=\"exec()\"\n (keyup)=\"exec()\"\n (mouseout)=\"onTextAreaMouseOut($event)\"\n >\n </div>\n <span class=\"angular-editor-placeholder\">{{ placeholder || config['placeholder'] }}</span>\n </div>\n <angular-editor-toolbar\n *ngIf=\"config.toolbarPosition === 'bottom'\"\n #editorToolbar\n [id]=\"id\"\n [uploadUrl]=\"config.uploadUrl\"\n [upload]=\"config.upload\"\n [showToolbar]=\"config.showToolbar !== undefined ? config.showToolbar : true\"\n [fonts]=\"getFonts()\"\n [customClasses]=\"config.customClasses\"\n [defaultFontName]=\"config.defaultFontName\"\n [defaultFontSize]=\"config.defaultFontSize\"\n [hiddenButtons]=\"config.toolbarHiddenButtons\"\n (execute)=\"executeCommand($event)\"\n ></angular-editor-toolbar>\n</div>\n",
645
- providers: [
646
- {
647
- provide: forms.NG_VALUE_ACCESSOR,
648
- useExisting: core.forwardRef(function () { return AngularEditorComponent; }),
649
- multi: true
650
- },
651
- AngularEditorService
652
- ],
653
- styles: ["@charset \"UTF-8\";\n/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0);src:url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.eot#iefix&v=4.7.0) format(\"embedded-opentype\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0) format(\"woff2\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0) format(\"woff\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0) format(\"truetype\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format(\"svg\");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.3333333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.2857142857em;text-align:center}.fa-ul{padding-left:0;margin-left:2.1428571429em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.1428571429em;width:2.1428571429em;top:.1428571429em;text-align:center}.fa-li.fa-lg{left:-1.8571428571em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:\"\uF000\"}.fa-music:before{content:\"\uF001\"}.fa-search:before{content:\"\uF002\"}.fa-envelope-o:before{content:\"\uF003\"}.fa-heart:before{content:\"\uF004\"}.fa-star:before{content:\"\uF005\"}.fa-star-o:before{content:\"\uF006\"}.fa-user:before{content:\"\uF007\"}.fa-film:before{content:\"\uF008\"}.fa-th-large:before{content:\"\uF009\"}.fa-th:before{content:\"\uF00A\"}.fa-th-list:before{content:\"\uF00B\"}.fa-check:before{content:\"\uF00C\"}.fa-close:before,.fa-remove:before,.fa-times:before{content:\"\uF00D\"}.fa-search-plus:before{content:\"\uF00E\"}.fa-search-minus:before{content:\"\uF010\"}.fa-power-off:before{content:\"\uF011\"}.fa-signal:before{content:\"\uF012\"}.fa-cog:before,.fa-gear:before{content:\"\uF013\"}.fa-trash-o:before{content:\"\uF014\"}.fa-home:before{content:\"\uF015\"}.fa-file-o:before{content:\"\uF016\"}.fa-clock-o:before{content:\"\uF017\"}.fa-road:before{content:\"\uF018\"}.fa-download:before{content:\"\uF019\"}.fa-arrow-circle-o-down:before{content:\"\uF01A\"}.fa-arrow-circle-o-up:before{content:\"\uF01B\"}.fa-inbox:before{content:\"\uF01C\"}.fa-play-circle-o:before{content:\"\uF01D\"}.fa-repeat:before,.fa-rotate-right:before{content:\"\uF01E\"}.fa-refresh:before{content:\"\uF021\"}.fa-list-alt:before{content:\"\uF022\"}.fa-lock:before{content:\"\uF023\"}.fa-flag:before{content:\"\uF024\"}.fa-headphones:before{content:\"\uF025\"}.fa-volume-off:before{content:\"\uF026\"}.fa-volume-down:before{content:\"\uF027\"}.fa-volume-up:before{content:\"\uF028\"}.fa-qrcode:before{content:\"\uF029\"}.fa-barcode:before{content:\"\uF02A\"}.fa-tag:before{content:\"\uF02B\"}.fa-tags:before{content:\"\uF02C\"}.fa-book:before{content:\"\uF02D\"}.fa-bookmark:before{content:\"\uF02E\"}.fa-print:before{content:\"\uF02F\"}.fa-camera:before{content:\"\uF030\"}.fa-font:before{content:\"\uF031\"}.fa-bold:before{content:\"\uF032\"}.fa-italic:before{content:\"\uF033\"}.fa-text-height:before{content:\"\uF034\"}.fa-text-width:before{content:\"\uF035\"}.fa-align-left:before{content:\"\uF036\"}.fa-align-center:before{content:\"\uF037\"}.fa-align-right:before{content:\"\uF038\"}.fa-align-justify:before{content:\"\uF039\"}.fa-list:before{content:\"\uF03A\"}.fa-dedent:before,.fa-outdent:before{content:\"\uF03B\"}.fa-indent:before{content:\"\uF03C\"}.fa-video-camera:before{content:\"\uF03D\"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:\"\uF03E\"}.fa-pencil:before{content:\"\uF040\"}.fa-map-marker:before{content:\"\uF041\"}.fa-adjust:before{content:\"\uF042\"}.fa-tint:before{content:\"\uF043\"}.fa-edit:before,.fa-pencil-square-o:before{content:\"\uF044\"}.fa-share-square-o:before{content:\"\uF045\"}.fa-check-square-o:before{content:\"\uF046\"}.fa-arrows:before{content:\"\uF047\"}.fa-step-backward:before{content:\"\uF048\"}.fa-fast-backward:before{content:\"\uF049\"}.fa-backward:before{content:\"\uF04A\"}.fa-play:before{content:\"\uF04B\"}.fa-pause:before{content:\"\uF04C\"}.fa-stop:before{content:\"\uF04D\"}.fa-forward:before{content:\"\uF04E\"}.fa-fast-forward:before{content:\"\uF050\"}.fa-step-forward:before{content:\"\uF051\"}.fa-eject:before{content:\"\uF052\"}.fa-chevron-left:before{content:\"\uF053\"}.fa-chevron-right:before{content:\"\uF054\"}.fa-plus-circle:before{content:\"\uF055\"}.fa-minus-circle:before{content:\"\uF056\"}.fa-times-circle:before{content:\"\uF057\"}.fa-check-circle:before{content:\"\uF058\"}.fa-question-circle:before{content:\"\uF059\"}.fa-info-circle:before{content:\"\uF05A\"}.fa-crosshairs:before{content:\"\uF05B\"}.fa-times-circle-o:before{content:\"\uF05C\"}.fa-check-circle-o:before{content:\"\uF05D\"}.fa-ban:before{content:\"\uF05E\"}.fa-arrow-left:before{content:\"\uF060\"}.fa-arrow-right:before{content:\"\uF061\"}.fa-arrow-up:before{content:\"\uF062\"}.fa-arrow-down:before{content:\"\uF063\"}.fa-mail-forward:before,.fa-share:before{content:\"\uF064\"}.fa-expand:before{content:\"\uF065\"}.fa-compress:before{content:\"\uF066\"}.fa-plus:before{content:\"\uF067\"}.fa-minus:before{content:\"\uF068\"}.fa-asterisk:before{content:\"\uF069\"}.fa-exclamation-circle:before{content:\"\uF06A\"}.fa-gift:before{content:\"\uF06B\"}.fa-leaf:before{content:\"\uF06C\"}.fa-fire:before{content:\"\uF06D\"}.fa-eye:before{content:\"\uF06E\"}.fa-eye-slash:before{content:\"\uF070\"}.fa-exclamation-triangle:before,.fa-warning:before{content:\"\uF071\"}.fa-plane:before{content:\"\uF072\"}.fa-calendar:before{content:\"\uF073\"}.fa-random:before{content:\"\uF074\"}.fa-comment:before{content:\"\uF075\"}.fa-magnet:before{content:\"\uF076\"}.fa-chevron-up:before{content:\"\uF077\"}.fa-chevron-down:before{content:\"\uF078\"}.fa-retweet:before{content:\"\uF079\"}.fa-shopping-cart:before{content:\"\uF07A\"}.fa-folder:before{content:\"\uF07B\"}.fa-folder-open:before{content:\"\uF07C\"}.fa-arrows-v:before{content:\"\uF07D\"}.fa-arrows-h:before{content:\"\uF07E\"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:\"\uF080\"}.fa-twitter-square:before{content:\"\uF081\"}.fa-facebook-square:before{content:\"\uF082\"}.fa-camera-retro:before{content:\"\uF083\"}.fa-key:before{content:\"\uF084\"}.fa-cogs:before,.fa-gears:before{content:\"\uF085\"}.fa-comments:before{content:\"\uF086\"}.fa-thumbs-o-up:before{content:\"\uF087\"}.fa-thumbs-o-down:before{content:\"\uF088\"}.fa-star-half:before{content:\"\uF089\"}.fa-heart-o:before{content:\"\uF08A\"}.fa-sign-out:before{content:\"\uF08B\"}.fa-linkedin-square:before{content:\"\uF08C\"}.fa-thumb-tack:before{content:\"\uF08D\"}.fa-external-link:before{content:\"\uF08E\"}.fa-sign-in:before{content:\"\uF090\"}.fa-trophy:before{content:\"\uF091\"}.fa-github-square:before{content:\"\uF092\"}.fa-upload:before{content:\"\uF093\"}.fa-lemon-o:before{content:\"\uF094\"}.fa-phone:before{content:\"\uF095\"}.fa-square-o:before{content:\"\uF096\"}.fa-bookmark-o:before{content:\"\uF097\"}.fa-phone-square:before{content:\"\uF098\"}.fa-twitter:before{content:\"\uF099\"}.fa-facebook-f:before,.fa-facebook:before{content:\"\uF09A\"}.fa-github:before{content:\"\uF09B\"}.fa-unlock:before{content:\"\uF09C\"}.fa-credit-card:before{content:\"\uF09D\"}.fa-feed:before,.fa-rss:before{content:\"\uF09E\"}.fa-hdd-o:before{content:\"\uF0A0\"}.fa-bullhorn:before{content:\"\uF0A1\"}.fa-bell:before{content:\"\uF0F3\"}.fa-certificate:before{content:\"\uF0A3\"}.fa-hand-o-right:before{content:\"\uF0A4\"}.fa-hand-o-left:before{content:\"\uF0A5\"}.fa-hand-o-up:before{content:\"\uF0A6\"}.fa-hand-o-down:before{content:\"\uF0A7\"}.fa-arrow-circle-left:before{content:\"\uF0A8\"}.fa-arrow-circle-right:before{content:\"\uF0A9\"}.fa-arrow-circle-up:before{content:\"\uF0AA\"}.fa-arrow-circle-down:before{content:\"\uF0AB\"}.fa-globe:before{content:\"\uF0AC\"}.fa-wrench:before{content:\"\uF0AD\"}.fa-tasks:before{content:\"\uF0AE\"}.fa-filter:before{content:\"\uF0B0\"}.fa-briefcase:before{content:\"\uF0B1\"}.fa-arrows-alt:before{content:\"\uF0B2\"}.fa-group:before,.fa-users:before{content:\"\uF0C0\"}.fa-chain:before,.fa-link:before{content:\"\uF0C1\"}.fa-cloud:before{content:\"\uF0C2\"}.fa-flask:before{content:\"\uF0C3\"}.fa-cut:before,.fa-scissors:before{content:\"\uF0C4\"}.fa-copy:before,.fa-files-o:before{content:\"\uF0C5\"}.fa-paperclip:before{content:\"\uF0C6\"}.fa-floppy-o:before,.fa-save:before{content:\"\uF0C7\"}.fa-square:before{content:\"\uF0C8\"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:\"\uF0C9\"}.fa-list-ul:before{content:\"\uF0CA\"}.fa-list-ol:before{content:\"\uF0CB\"}.fa-strikethrough:before{content:\"\uF0CC\"}.fa-underline:before{content:\"\uF0CD\"}.fa-table:before{content:\"\uF0CE\"}.fa-magic:before{content:\"\uF0D0\"}.fa-truck:before{content:\"\uF0D1\"}.fa-pinterest:before{content:\"\uF0D2\"}.fa-pinterest-square:before{content:\"\uF0D3\"}.fa-google-plus-square:before{content:\"\uF0D4\"}.fa-google-plus:before{content:\"\uF0D5\"}.fa-money:before{content:\"\uF0D6\"}.fa-caret-down:before{content:\"\uF0D7\"}.fa-caret-up:before{content:\"\uF0D8\"}.fa-caret-left:before{content:\"\uF0D9\"}.fa-caret-right:before{content:\"\uF0DA\"}.fa-columns:before{content:\"\uF0DB\"}.fa-sort:before,.fa-unsorted:before{content:\"\uF0DC\"}.fa-sort-desc:before,.fa-sort-down:before{content:\"\uF0DD\"}.fa-sort-asc:before,.fa-sort-up:before{content:\"\uF0DE\"}.fa-envelope:before{content:\"\uF0E0\"}.fa-linkedin:before{content:\"\uF0E1\"}.fa-rotate-left:before,.fa-undo:before{content:\"\uF0E2\"}.fa-gavel:before,.fa-legal:before{content:\"\uF0E3\"}.fa-dashboard:before,.fa-tachometer:before{content:\"\uF0E4\"}.fa-comment-o:before{content:\"\uF0E5\"}.fa-comments-o:before{content:\"\uF0E6\"}.fa-bolt:before,.fa-flash:before{content:\"\uF0E7\"}.fa-sitemap:before{content:\"\uF0E8\"}.fa-umbrella:before{content:\"\uF0E9\"}.fa-clipboard:before,.fa-paste:before{content:\"\uF0EA\"}.fa-lightbulb-o:before{content:\"\uF0EB\"}.fa-exchange:before{content:\"\uF0EC\"}.fa-cloud-download:before{content:\"\uF0ED\"}.fa-cloud-upload:before{content:\"\uF0EE\"}.fa-user-md:before{content:\"\uF0F0\"}.fa-stethoscope:before{content:\"\uF0F1\"}.fa-suitcase:before{content:\"\uF0F2\"}.fa-bell-o:before{content:\"\uF0A2\"}.fa-coffee:before{content:\"\uF0F4\"}.fa-cutlery:before{content:\"\uF0F5\"}.fa-file-text-o:before{content:\"\uF0F6\"}.fa-building-o:before{content:\"\uF0F7\"}.fa-hospital-o:before{content:\"\uF0F8\"}.fa-ambulance:before{content:\"\uF0F9\"}.fa-medkit:before{content:\"\uF0FA\"}.fa-fighter-jet:before{content:\"\uF0FB\"}.fa-beer:before{content:\"\uF0FC\"}.fa-h-square:before{content:\"\uF0FD\"}.fa-plus-square:before{content:\"\uF0FE\"}.fa-angle-double-left:before{content:\"\uF100\"}.fa-angle-double-right:before{content:\"\uF101\"}.fa-angle-double-up:before{content:\"\uF102\"}.fa-angle-double-down:before{content:\"\uF103\"}.fa-angle-left:before{content:\"\uF104\"}.fa-angle-right:before{content:\"\uF105\"}.fa-angle-up:before{content:\"\uF106\"}.fa-angle-down:before{content:\"\uF107\"}.fa-desktop:before{content:\"\uF108\"}.fa-laptop:before{content:\"\uF109\"}.fa-tablet:before{content:\"\uF10A\"}.fa-mobile-phone:before,.fa-mobile:before{content:\"\uF10B\"}.fa-circle-o:before{content:\"\uF10C\"}.fa-quote-left:before{content:\"\uF10D\"}.fa-quote-right:before{content:\"\uF10E\"}.fa-spinner:before{content:\"\uF110\"}.fa-circle:before{content:\"\uF111\"}.fa-mail-reply:before,.fa-reply:before{content:\"\uF112\"}.fa-github-alt:before{content:\"\uF113\"}.fa-folder-o:before{content:\"\uF114\"}.fa-folder-open-o:before{content:\"\uF115\"}.fa-smile-o:before{content:\"\uF118\"}.fa-frown-o:before{content:\"\uF119\"}.fa-meh-o:before{content:\"\uF11A\"}.fa-gamepad:before{content:\"\uF11B\"}.fa-keyboard-o:before{content:\"\uF11C\"}.fa-flag-o:before{content:\"\uF11D\"}.fa-flag-checkered:before{content:\"\uF11E\"}.fa-terminal:before{content:\"\uF120\"}.fa-code:before{content:\"\uF121\"}.fa-mail-reply-all:before,.fa-reply-all:before{content:\"\uF122\"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:\"\uF123\"}.fa-location-arrow:before{content:\"\uF124\"}.fa-crop:before{content:\"\uF125\"}.fa-code-fork:before{content:\"\uF126\"}.fa-chain-broken:before,.fa-unlink:before{content:\"\uF127\"}.fa-question:before{content:\"\uF128\"}.fa-info:before{content:\"\uF129\"}.fa-exclamation:before{content:\"\uF12A\"}.fa-superscript:before{content:\"\uF12B\"}.fa-subscript:before{content:\"\uF12C\"}.fa-eraser:before{content:\"\uF12D\"}.fa-puzzle-piece:before{content:\"\uF12E\"}.fa-microphone:before{content:\"\uF130\"}.fa-microphone-slash:before{content:\"\uF131\"}.fa-shield:before{content:\"\uF132\"}.fa-calendar-o:before{content:\"\uF133\"}.fa-fire-extinguisher:before{content:\"\uF134\"}.fa-rocket:before{content:\"\uF135\"}.fa-maxcdn:before{content:\"\uF136\"}.fa-chevron-circle-left:before{content:\"\uF137\"}.fa-chevron-circle-right:before{content:\"\uF138\"}.fa-chevron-circle-up:before{content:\"\uF139\"}.fa-chevron-circle-down:before{content:\"\uF13A\"}.fa-html5:before{content:\"\uF13B\"}.fa-css3:before{content:\"\uF13C\"}.fa-anchor:before{content:\"\uF13D\"}.fa-unlock-alt:before{content:\"\uF13E\"}.fa-bullseye:before{content:\"\uF140\"}.fa-ellipsis-h:before{content:\"\uF141\"}.fa-ellipsis-v:before{content:\"\uF142\"}.fa-rss-square:before{content:\"\uF143\"}.fa-play-circle:before{content:\"\uF144\"}.fa-ticket:before{content:\"\uF145\"}.fa-minus-square:before{content:\"\uF146\"}.fa-minus-square-o:before{content:\"\uF147\"}.fa-level-up:before{content:\"\uF148\"}.fa-level-down:before{content:\"\uF149\"}.fa-check-square:before{content:\"\uF14A\"}.fa-pencil-square:before{content:\"\uF14B\"}.fa-external-link-square:before{content:\"\uF14C\"}.fa-share-square:before{content:\"\uF14D\"}.fa-compass:before{content:\"\uF14E\"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:\"\uF150\"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:\"\uF151\"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:\"\uF152\"}.fa-eur:before,.fa-euro:before{content:\"\uF153\"}.fa-gbp:before{content:\"\uF154\"}.fa-dollar:before,.fa-usd:before{content:\"\uF155\"}.fa-inr:before,.fa-rupee:before{content:\"\uF156\"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:\"\uF157\"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:\"\uF158\"}.fa-krw:before,.fa-won:before{content:\"\uF159\"}.fa-bitcoin:before,.fa-btc:before{content:\"\uF15A\"}.fa-file:before{content:\"\uF15B\"}.fa-file-text:before{content:\"\uF15C\"}.fa-sort-alpha-asc:before{content:\"\uF15D\"}.fa-sort-alpha-desc:before{content:\"\uF15E\"}.fa-sort-amount-asc:before{content:\"\uF160\"}.fa-sort-amount-desc:before{content:\"\uF161\"}.fa-sort-numeric-asc:before{content:\"\uF162\"}.fa-sort-numeric-desc:before{content:\"\uF163\"}.fa-thumbs-up:before{content:\"\uF164\"}.fa-thumbs-down:before{content:\"\uF165\"}.fa-youtube-square:before{content:\"\uF166\"}.fa-youtube:before{content:\"\uF167\"}.fa-xing:before{content:\"\uF168\"}.fa-xing-square:before{content:\"\uF169\"}.fa-youtube-play:before{content:\"\uF16A\"}.fa-dropbox:before{content:\"\uF16B\"}.fa-stack-overflow:before{content:\"\uF16C\"}.fa-instagram:before{content:\"\uF16D\"}.fa-flickr:before{content:\"\uF16E\"}.fa-adn:before{content:\"\uF170\"}.fa-bitbucket:before{content:\"\uF171\"}.fa-bitbucket-square:before{content:\"\uF172\"}.fa-tumblr:before{content:\"\uF173\"}.fa-tumblr-square:before{content:\"\uF174\"}.fa-long-arrow-down:before{content:\"\uF175\"}.fa-long-arrow-up:before{content:\"\uF176\"}.fa-long-arrow-left:before{content:\"\uF177\"}.fa-long-arrow-right:before{content:\"\uF178\"}.fa-apple:before{content:\"\uF179\"}.fa-windows:before{content:\"\uF17A\"}.fa-android:before{content:\"\uF17B\"}.fa-linux:before{content:\"\uF17C\"}.fa-dribbble:before{content:\"\uF17D\"}.fa-skype:before{content:\"\uF17E\"}.fa-foursquare:before{content:\"\uF180\"}.fa-trello:before{content:\"\uF181\"}.fa-female:before{content:\"\uF182\"}.fa-male:before{content:\"\uF183\"}.fa-gittip:before,.fa-gratipay:before{content:\"\uF184\"}.fa-sun-o:before{content:\"\uF185\"}.fa-moon-o:before{content:\"\uF186\"}.fa-archive:before{content:\"\uF187\"}.fa-bug:before{content:\"\uF188\"}.fa-vk:before{content:\"\uF189\"}.fa-weibo:before{content:\"\uF18A\"}.fa-renren:before{content:\"\uF18B\"}.fa-pagelines:before{content:\"\uF18C\"}.fa-stack-exchange:before{content:\"\uF18D\"}.fa-arrow-circle-o-right:before{content:\"\uF18E\"}.fa-arrow-circle-o-left:before{content:\"\uF190\"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:\"\uF191\"}.fa-dot-circle-o:before{content:\"\uF192\"}.fa-wheelchair:before{content:\"\uF193\"}.fa-vimeo-square:before{content:\"\uF194\"}.fa-try:before,.fa-turkish-lira:before{content:\"\uF195\"}.fa-plus-square-o:before{content:\"\uF196\"}.fa-space-shuttle:before{content:\"\uF197\"}.fa-slack:before{content:\"\uF198\"}.fa-envelope-square:before{content:\"\uF199\"}.fa-wordpress:before{content:\"\uF19A\"}.fa-openid:before{content:\"\uF19B\"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:\"\uF19C\"}.fa-graduation-cap:before,.fa-mortar-board:before{content:\"\uF19D\"}.fa-yahoo:before{content:\"\uF19E\"}.fa-google:before{content:\"\uF1A0\"}.fa-reddit:before{content:\"\uF1A1\"}.fa-reddit-square:before{content:\"\uF1A2\"}.fa-stumbleupon-circle:before{content:\"\uF1A3\"}.fa-stumbleupon:before{content:\"\uF1A4\"}.fa-delicious:before{content:\"\uF1A5\"}.fa-digg:before{content:\"\uF1A6\"}.fa-pied-piper-pp:before{content:\"\uF1A7\"}.fa-pied-piper-alt:before{content:\"\uF1A8\"}.fa-drupal:before{content:\"\uF1A9\"}.fa-joomla:before{content:\"\uF1AA\"}.fa-language:before{content:\"\uF1AB\"}.fa-fax:before{content:\"\uF1AC\"}.fa-building:before{content:\"\uF1AD\"}.fa-child:before{content:\"\uF1AE\"}.fa-paw:before{content:\"\uF1B0\"}.fa-spoon:before{content:\"\uF1B1\"}.fa-cube:before{content:\"\uF1B2\"}.fa-cubes:before{content:\"\uF1B3\"}.fa-behance:before{content:\"\uF1B4\"}.fa-behance-square:before{content:\"\uF1B5\"}.fa-steam:before{content:\"\uF1B6\"}.fa-steam-square:before{content:\"\uF1B7\"}.fa-recycle:before{content:\"\uF1B8\"}.fa-automobile:before,.fa-car:before{content:\"\uF1B9\"}.fa-cab:before,.fa-taxi:before{content:\"\uF1BA\"}.fa-tree:before{content:\"\uF1BB\"}.fa-spotify:before{content:\"\uF1BC\"}.fa-deviantart:before{content:\"\uF1BD\"}.fa-soundcloud:before{content:\"\uF1BE\"}.fa-database:before{content:\"\uF1C0\"}.fa-file-pdf-o:before{content:\"\uF1C1\"}.fa-file-word-o:before{content:\"\uF1C2\"}.fa-file-excel-o:before{content:\"\uF1C3\"}.fa-file-powerpoint-o:before{content:\"\uF1C4\"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:\"\uF1C5\"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:\"\uF1C6\"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:\"\uF1C7\"}.fa-file-movie-o:before,.fa-file-video-o:before{content:\"\uF1C8\"}.fa-file-code-o:before{content:\"\uF1C9\"}.fa-vine:before{content:\"\uF1CA\"}.fa-codepen:before{content:\"\uF1CB\"}.fa-jsfiddle:before{content:\"\uF1CC\"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:\"\uF1CD\"}.fa-circle-o-notch:before{content:\"\uF1CE\"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:\"\uF1D0\"}.fa-empire:before,.fa-ge:before{content:\"\uF1D1\"}.fa-git-square:before{content:\"\uF1D2\"}.fa-git:before{content:\"\uF1D3\"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:\"\uF1D4\"}.fa-tencent-weibo:before{content:\"\uF1D5\"}.fa-qq:before{content:\"\uF1D6\"}.fa-wechat:before,.fa-weixin:before{content:\"\uF1D7\"}.fa-paper-plane:before,.fa-send:before{content:\"\uF1D8\"}.fa-paper-plane-o:before,.fa-send-o:before{content:\"\uF1D9\"}.fa-history:before{content:\"\uF1DA\"}.fa-circle-thin:before{content:\"\uF1DB\"}.fa-header:before{content:\"\uF1DC\"}.fa-paragraph:before{content:\"\uF1DD\"}.fa-sliders:before{content:\"\uF1DE\"}.fa-share-alt:before{content:\"\uF1E0\"}.fa-share-alt-square:before{content:\"\uF1E1\"}.fa-bomb:before{content:\"\uF1E2\"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:\"\uF1E3\"}.fa-tty:before{content:\"\uF1E4\"}.fa-binoculars:before{content:\"\uF1E5\"}.fa-plug:before{content:\"\uF1E6\"}.fa-slideshare:before{content:\"\uF1E7\"}.fa-twitch:before{content:\"\uF1E8\"}.fa-yelp:before{content:\"\uF1E9\"}.fa-newspaper-o:before{content:\"\uF1EA\"}.fa-wifi:before{content:\"\uF1EB\"}.fa-calculator:before{content:\"\uF1EC\"}.fa-paypal:before{content:\"\uF1ED\"}.fa-google-wallet:before{content:\"\uF1EE\"}.fa-cc-visa:before{content:\"\uF1F0\"}.fa-cc-mastercard:before{content:\"\uF1F1\"}.fa-cc-discover:before{content:\"\uF1F2\"}.fa-cc-amex:before{content:\"\uF1F3\"}.fa-cc-paypal:before{content:\"\uF1F4\"}.fa-cc-stripe:before{content:\"\uF1F5\"}.fa-bell-slash:before{content:\"\uF1F6\"}.fa-bell-slash-o:before{content:\"\uF1F7\"}.fa-trash:before{content:\"\uF1F8\"}.fa-copyright:before{content:\"\uF1F9\"}.fa-at:before{content:\"\uF1FA\"}.fa-eyedropper:before{content:\"\uF1FB\"}.fa-paint-brush:before{content:\"\uF1FC\"}.fa-birthday-cake:before{content:\"\uF1FD\"}.fa-area-chart:before{content:\"\uF1FE\"}.fa-pie-chart:before{content:\"\uF200\"}.fa-line-chart:before{content:\"\uF201\"}.fa-lastfm:before{content:\"\uF202\"}.fa-lastfm-square:before{content:\"\uF203\"}.fa-toggle-off:before{content:\"\uF204\"}.fa-toggle-on:before{content:\"\uF205\"}.fa-bicycle:before{content:\"\uF206\"}.fa-bus:before{content:\"\uF207\"}.fa-ioxhost:before{content:\"\uF208\"}.fa-angellist:before{content:\"\uF209\"}.fa-cc:before{content:\"\uF20A\"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:\"\uF20B\"}.fa-meanpath:before{content:\"\uF20C\"}.fa-buysellads:before{content:\"\uF20D\"}.fa-connectdevelop:before{content:\"\uF20E\"}.fa-dashcube:before{content:\"\uF210\"}.fa-forumbee:before{content:\"\uF211\"}.fa-leanpub:before{content:\"\uF212\"}.fa-sellsy:before{content:\"\uF213\"}.fa-shirtsinbulk:before{content:\"\uF214\"}.fa-simplybuilt:before{content:\"\uF215\"}.fa-skyatlas:before{content:\"\uF216\"}.fa-cart-plus:before{content:\"\uF217\"}.fa-cart-arrow-down:before{content:\"\uF218\"}.fa-diamond:before{content:\"\uF219\"}.fa-ship:before{content:\"\uF21A\"}.fa-user-secret:before{content:\"\uF21B\"}.fa-motorcycle:before{content:\"\uF21C\"}.fa-street-view:before{content:\"\uF21D\"}.fa-heartbeat:before{content:\"\uF21E\"}.fa-venus:before{content:\"\uF221\"}.fa-mars:before{content:\"\uF222\"}.fa-mercury:before{content:\"\uF223\"}.fa-intersex:before,.fa-transgender:before{content:\"\uF224\"}.fa-transgender-alt:before{content:\"\uF225\"}.fa-venus-double:before{content:\"\uF226\"}.fa-mars-double:before{content:\"\uF227\"}.fa-venus-mars:before{content:\"\uF228\"}.fa-mars-stroke:before{content:\"\uF229\"}.fa-mars-stroke-v:before{content:\"\uF22A\"}.fa-mars-stroke-h:before{content:\"\uF22B\"}.fa-neuter:before{content:\"\uF22C\"}.fa-genderless:before{content:\"\uF22D\"}.fa-facebook-official:before{content:\"\uF230\"}.fa-pinterest-p:before{content:\"\uF231\"}.fa-whatsapp:before{content:\"\uF232\"}.fa-server:before{content:\"\uF233\"}.fa-user-plus:before{content:\"\uF234\"}.fa-user-times:before{content:\"\uF235\"}.fa-bed:before,.fa-hotel:before{content:\"\uF236\"}.fa-viacoin:before{content:\"\uF237\"}.fa-train:before{content:\"\uF238\"}.fa-subway:before{content:\"\uF239\"}.fa-medium:before{content:\"\uF23A\"}.fa-y-combinator:before,.fa-yc:before{content:\"\uF23B\"}.fa-optin-monster:before{content:\"\uF23C\"}.fa-opencart:before{content:\"\uF23D\"}.fa-expeditedssl:before{content:\"\uF23E\"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:\"\uF240\"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:\"\uF241\"}.fa-battery-2:before,.fa-battery-half:before{content:\"\uF242\"}.fa-battery-1:before,.fa-battery-quarter:before{content:\"\uF243\"}.fa-battery-0:before,.fa-battery-empty:before{content:\"\uF244\"}.fa-mouse-pointer:before{content:\"\uF245\"}.fa-i-cursor:before{content:\"\uF246\"}.fa-object-group:before{content:\"\uF247\"}.fa-object-ungroup:before{content:\"\uF248\"}.fa-sticky-note:before{content:\"\uF249\"}.fa-sticky-note-o:before{content:\"\uF24A\"}.fa-cc-jcb:before{content:\"\uF24B\"}.fa-cc-diners-club:before{content:\"\uF24C\"}.fa-clone:before{content:\"\uF24D\"}.fa-balance-scale:before{content:\"\uF24E\"}.fa-hourglass-o:before{content:\"\uF250\"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:\"\uF251\"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:\"\uF252\"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:\"\uF253\"}.fa-hourglass:before{content:\"\uF254\"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:\"\uF255\"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:\"\uF256\"}.fa-hand-scissors-o:before{content:\"\uF257\"}.fa-hand-lizard-o:before{content:\"\uF258\"}.fa-hand-spock-o:before{content:\"\uF259\"}.fa-hand-pointer-o:before{content:\"\uF25A\"}.fa-hand-peace-o:before{content:\"\uF25B\"}.fa-trademark:before{content:\"\uF25C\"}.fa-registered:before{content:\"\uF25D\"}.fa-creative-commons:before{content:\"\uF25E\"}.fa-gg:before{content:\"\uF260\"}.fa-gg-circle:before{content:\"\uF261\"}.fa-tripadvisor:before{content:\"\uF262\"}.fa-odnoklassniki:before{content:\"\uF263\"}.fa-odnoklassniki-square:before{content:\"\uF264\"}.fa-get-pocket:before{content:\"\uF265\"}.fa-wikipedia-w:before{content:\"\uF266\"}.fa-safari:before{content:\"\uF267\"}.fa-chrome:before{content:\"\uF268\"}.fa-firefox:before{content:\"\uF269\"}.fa-opera:before{content:\"\uF26A\"}.fa-internet-explorer:before{content:\"\uF26B\"}.fa-television:before,.fa-tv:before{content:\"\uF26C\"}.fa-contao:before{content:\"\uF26D\"}.fa-500px:before{content:\"\uF26E\"}.fa-amazon:before{content:\"\uF270\"}.fa-calendar-plus-o:before{content:\"\uF271\"}.fa-calendar-minus-o:before{content:\"\uF272\"}.fa-calendar-times-o:before{content:\"\uF273\"}.fa-calendar-check-o:before{content:\"\uF274\"}.fa-industry:before{content:\"\uF275\"}.fa-map-pin:before{content:\"\uF276\"}.fa-map-signs:before{content:\"\uF277\"}.fa-map-o:before{content:\"\uF278\"}.fa-map:before{content:\"\uF279\"}.fa-commenting:before{content:\"\uF27A\"}.fa-commenting-o:before{content:\"\uF27B\"}.fa-houzz:before{content:\"\uF27C\"}.fa-vimeo:before{content:\"\uF27D\"}.fa-black-tie:before{content:\"\uF27E\"}.fa-fonticons:before{content:\"\uF280\"}.fa-reddit-alien:before{content:\"\uF281\"}.fa-edge:before{content:\"\uF282\"}.fa-credit-card-alt:before{content:\"\uF283\"}.fa-codiepie:before{content:\"\uF284\"}.fa-modx:before{content:\"\uF285\"}.fa-fort-awesome:before{content:\"\uF286\"}.fa-usb:before{content:\"\uF287\"}.fa-product-hunt:before{content:\"\uF288\"}.fa-mixcloud:before{content:\"\uF289\"}.fa-scribd:before{content:\"\uF28A\"}.fa-pause-circle:before{content:\"\uF28B\"}.fa-pause-circle-o:before{content:\"\uF28C\"}.fa-stop-circle:before{content:\"\uF28D\"}.fa-stop-circle-o:before{content:\"\uF28E\"}.fa-shopping-bag:before{content:\"\uF290\"}.fa-shopping-basket:before{content:\"\uF291\"}.fa-hashtag:before{content:\"\uF292\"}.fa-bluetooth:before{content:\"\uF293\"}.fa-bluetooth-b:before{content:\"\uF294\"}.fa-percent:before{content:\"\uF295\"}.fa-gitlab:before{content:\"\uF296\"}.fa-wpbeginner:before{content:\"\uF297\"}.fa-wpforms:before{content:\"\uF298\"}.fa-envira:before{content:\"\uF299\"}.fa-universal-access:before{content:\"\uF29A\"}.fa-wheelchair-alt:before{content:\"\uF29B\"}.fa-question-circle-o:before{content:\"\uF29C\"}.fa-blind:before{content:\"\uF29D\"}.fa-audio-description:before{content:\"\uF29E\"}.fa-volume-control-phone:before{content:\"\uF2A0\"}.fa-braille:before{content:\"\uF2A1\"}.fa-assistive-listening-systems:before{content:\"\uF2A2\"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:\"\uF2A3\"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:\"\uF2A4\"}.fa-glide:before{content:\"\uF2A5\"}.fa-glide-g:before{content:\"\uF2A6\"}.fa-sign-language:before,.fa-signing:before{content:\"\uF2A7\"}.fa-low-vision:before{content:\"\uF2A8\"}.fa-viadeo:before{content:\"\uF2A9\"}.fa-viadeo-square:before{content:\"\uF2AA\"}.fa-snapchat:before{content:\"\uF2AB\"}.fa-snapchat-ghost:before{content:\"\uF2AC\"}.fa-snapchat-square:before{content:\"\uF2AD\"}.fa-pied-piper:before{content:\"\uF2AE\"}.fa-first-order:before{content:\"\uF2B0\"}.fa-yoast:before{content:\"\uF2B1\"}.fa-themeisle:before{content:\"\uF2B2\"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:\"\uF2B3\"}.fa-fa:before,.fa-font-awesome:before{content:\"\uF2B4\"}.fa-handshake-o:before{content:\"\uF2B5\"}.fa-envelope-open:before{content:\"\uF2B6\"}.fa-envelope-open-o:before{content:\"\uF2B7\"}.fa-linode:before{content:\"\uF2B8\"}.fa-address-book:before{content:\"\uF2B9\"}.fa-address-book-o:before{content:\"\uF2BA\"}.fa-address-card:before,.fa-vcard:before{content:\"\uF2BB\"}.fa-address-card-o:before,.fa-vcard-o:before{content:\"\uF2BC\"}.fa-user-circle:before{content:\"\uF2BD\"}.fa-user-circle-o:before{content:\"\uF2BE\"}.fa-user-o:before{content:\"\uF2C0\"}.fa-id-badge:before{content:\"\uF2C1\"}.fa-drivers-license:before,.fa-id-card:before{content:\"\uF2C2\"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:\"\uF2C3\"}.fa-quora:before{content:\"\uF2C4\"}.fa-free-code-camp:before{content:\"\uF2C5\"}.fa-telegram:before{content:\"\uF2C6\"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:\"\uF2C7\"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:\"\uF2C8\"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:\"\uF2C9\"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:\"\uF2CA\"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:\"\uF2CB\"}.fa-shower:before{content:\"\uF2CC\"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:\"\uF2CD\"}.fa-podcast:before{content:\"\uF2CE\"}.fa-window-maximize:before{content:\"\uF2D0\"}.fa-window-minimize:before{content:\"\uF2D1\"}.fa-window-restore:before{content:\"\uF2D2\"}.fa-times-rectangle:before,.fa-window-close:before{content:\"\uF2D3\"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:\"\uF2D4\"}.fa-bandcamp:before{content:\"\uF2D5\"}.fa-grav:before{content:\"\uF2D6\"}.fa-etsy:before{content:\"\uF2D7\"}.fa-imdb:before{content:\"\uF2D8\"}.fa-ravelry:before{content:\"\uF2D9\"}.fa-eercast:before{content:\"\uF2DA\"}.fa-microchip:before{content:\"\uF2DB\"}.fa-snowflake-o:before{content:\"\uF2DC\"}.fa-superpowers:before{content:\"\uF2DD\"}.fa-wpexplorer:before{content:\"\uF2DE\"}.fa-meetup:before{content:\"\uF2E0\"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}a{cursor:pointer}.angular-editor-textarea{min-height:150px;overflow:auto;margin-top:5px;resize:vertical}.angular-editor-textarea:after{content:\"\";position:absolute;bottom:0;right:0;display:block;width:8px;height:8px;cursor:nwse-resize;background-color:hsla(0,0%,100%,.5)}.angular-editor-toolbar{font:100 14px/15px Roboto,Arial,sans-serif;background-color:#f5f5f5;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.angular-editor-toolbar .angular-editor-toolbar-set{display:none;margin-right:5px;vertical-align:baseline}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button{background-color:#fff;vertical-align:middle;border:1px solid #ddd;padding:.4rem;min-width:2rem;float:left}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button.focus,.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:focus{outline:0}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled>.color-label{pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled>.color-label.background,.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled>.color-label.foreground :after{background:#555}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button.active{background:#fff5b9}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button.active:hover{background-color:#fffa98}.angular-editor-toolbar .angular-editor-toolbar-set select{font-size:11px;width:90px;vertical-align:middle;background-color:transparent;border:.5px solid hsla(0,0%,100%,0);border-radius:5px;outline:none;padding:.4rem;cursor:pointer}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading{display:inline-block;width:90px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-heading optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading option{border:1px solid;background-color:#fff}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .default{font-size:16px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h1{font-size:24px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h2{font-size:20px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h3{font-size:16px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h4{font-size:15px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h5{font-size:14px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h6{font-size:13px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .div,.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .pre{font-size:12px}}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .select-font{display:inline-block;width:90px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-font optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font option{border:1px solid;background-color:#fff}}.angular-editor-toolbar .angular-editor-toolbar-set .select-font:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-font:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size{display:inline-block;width:50px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size option{border:1px solid;background-color:#fff}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size1{font-size:10px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size2{font-size:12px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size3{font-size:14px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size4{font-size:16px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size5{font-size:18px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size6{font-size:20px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size7{font-size:22px}}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style{display:inline-block;width:90px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style option{border:1px solid;background-color:#fff}}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .color-label{position:relative;cursor:pointer}.angular-editor-toolbar .angular-editor-toolbar-set .background{font-size:smaller;background:#1b1b1b;color:#fff;padding:3px}.angular-editor-toolbar .angular-editor-toolbar-set .foreground :after{position:absolute;content:\"\";left:-1px;top:auto;bottom:-3px;right:auto;width:15px;height:2px;z-index:0;background:#1b1b1b}.angular-editor-toolbar .angular-editor-toolbar-set:not([style*=\"display:none\"]):not([style*=\"display: none\"]){display:inline-block}.angular-editor{position:relative}.angular-editor ::ng-deep [contenteditable=true]:empty:before{content:attr(placeholder);color:#868e96;opacity:1}.angular-editor .angular-editor-wrapper{position:relative}.angular-editor .angular-editor-wrapper .angular-editor-textarea{min-height:5rem;padding:.5rem .8rem 1rem;border:1px solid #ddd;background-color:transparent;overflow-x:hidden;overflow-y:auto;position:relative}.angular-editor .angular-editor-wrapper .angular-editor-textarea ::ng-deep blockquote{margin-left:1rem;border-left:.2em solid #dfe2e5;padding-left:.5rem}.angular-editor .angular-editor-wrapper ::ng-deep p{margin-bottom:0}.angular-editor .angular-editor-wrapper .angular-editor-placeholder{display:none;position:absolute;top:0;padding:.5rem .8rem 1rem .9rem;color:#6c757d;opacity:.75}.angular-editor .angular-editor-wrapper.show-placeholder .angular-editor-placeholder{display:block}.angular-editor .angular-editor-wrapper.disabled{cursor:not-allowed;opacity:.5;pointer-events:none}"]
654
- },] }
655
- ];
656
- AngularEditorComponent.ctorParameters = function () { return [
657
- { type: core.Renderer2 },
658
- { type: AngularEditorService },
659
- { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
660
- { type: platformBrowser.DomSanitizer },
661
- { type: core.ChangeDetectorRef },
662
- { type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
663
- { type: undefined, decorators: [{ type: core.Attribute, args: ['autofocus',] }] }
664
- ]; };
665
- AngularEditorComponent.propDecorators = {
666
- id: [{ type: core.Input }],
667
- config: [{ type: core.Input }],
668
- placeholder: [{ type: core.Input }],
669
- tabIndex: [{ type: core.Input }],
670
- html: [{ type: core.Output }],
671
- textArea: [{ type: core.ViewChild, args: ['editor', { static: true },] }],
672
- editorWrapper: [{ type: core.ViewChild, args: ['editorWrapper', { static: true },] }],
673
- editorToolbar: [{ type: core.ViewChild, args: ['editorToolbar',] }],
674
- viewMode: [{ type: core.Output }],
675
- blurEvent: [{ type: core.Output, args: ['blur',] }],
676
- focusEvent: [{ type: core.Output, args: ['focus',] }],
677
- tabindex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
678
- onFocus: [{ type: core.HostListener, args: ['focus',] }]
679
- };
680
-
681
- /*! *****************************************************************************
682
- Copyright (c) Microsoft Corporation.
683
-
684
- Permission to use, copy, modify, and/or distribute this software for any
685
- purpose with or without fee is hereby granted.
686
-
687
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
688
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
689
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
690
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
691
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
692
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
693
- PERFORMANCE OF THIS SOFTWARE.
694
- ***************************************************************************** */
695
- /* global Reflect, Promise */
696
- var extendStatics = function (d, b) {
697
- extendStatics = Object.setPrototypeOf ||
698
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
699
- function (d, b) { for (var p in b)
700
- if (Object.prototype.hasOwnProperty.call(b, p))
701
- d[p] = b[p]; };
702
- return extendStatics(d, b);
703
- };
704
- function __extends(d, b) {
705
- if (typeof b !== "function" && b !== null)
706
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
707
- extendStatics(d, b);
708
- function __() { this.constructor = d; }
709
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
710
- }
711
- var __assign = function () {
712
- __assign = Object.assign || function __assign(t) {
713
- for (var s, i = 1, n = arguments.length; i < n; i++) {
714
- s = arguments[i];
715
- for (var p in s)
716
- if (Object.prototype.hasOwnProperty.call(s, p))
717
- t[p] = s[p];
718
- }
719
- return t;
720
- };
721
- return __assign.apply(this, arguments);
722
- };
723
- function __rest(s, e) {
724
- var t = {};
725
- for (var p in s)
726
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
727
- t[p] = s[p];
728
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
729
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
730
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
731
- t[p[i]] = s[p[i]];
732
- }
733
- return t;
734
- }
735
- function __decorate(decorators, target, key, desc) {
736
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
737
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
738
- r = Reflect.decorate(decorators, target, key, desc);
739
- else
740
- for (var i = decorators.length - 1; i >= 0; i--)
741
- if (d = decorators[i])
742
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
743
- return c > 3 && r && Object.defineProperty(target, key, r), r;
744
- }
745
- function __param(paramIndex, decorator) {
746
- return function (target, key) { decorator(target, key, paramIndex); };
747
- }
748
- function __metadata(metadataKey, metadataValue) {
749
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
750
- return Reflect.metadata(metadataKey, metadataValue);
751
- }
752
- function __awaiter(thisArg, _arguments, P, generator) {
753
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
754
- return new (P || (P = Promise))(function (resolve, reject) {
755
- function fulfilled(value) { try {
756
- step(generator.next(value));
757
- }
758
- catch (e) {
759
- reject(e);
760
- } }
761
- function rejected(value) { try {
762
- step(generator["throw"](value));
763
- }
764
- catch (e) {
765
- reject(e);
766
- } }
767
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
768
- step((generator = generator.apply(thisArg, _arguments || [])).next());
769
- });
770
- }
771
- function __generator(thisArg, body) {
772
- var _ = { label: 0, sent: function () { if (t[0] & 1)
773
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
774
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
775
- function verb(n) { return function (v) { return step([n, v]); }; }
776
- function step(op) {
777
- if (f)
778
- throw new TypeError("Generator is already executing.");
779
- while (_)
780
- try {
781
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
782
- return t;
783
- if (y = 0, t)
784
- op = [op[0] & 2, t.value];
785
- switch (op[0]) {
786
- case 0:
787
- case 1:
788
- t = op;
789
- break;
790
- case 4:
791
- _.label++;
792
- return { value: op[1], done: false };
793
- case 5:
794
- _.label++;
795
- y = op[1];
796
- op = [0];
797
- continue;
798
- case 7:
799
- op = _.ops.pop();
800
- _.trys.pop();
801
- continue;
802
- default:
803
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
804
- _ = 0;
805
- continue;
806
- }
807
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
808
- _.label = op[1];
809
- break;
810
- }
811
- if (op[0] === 6 && _.label < t[1]) {
812
- _.label = t[1];
813
- t = op;
814
- break;
815
- }
816
- if (t && _.label < t[2]) {
817
- _.label = t[2];
818
- _.ops.push(op);
819
- break;
820
- }
821
- if (t[2])
822
- _.ops.pop();
823
- _.trys.pop();
824
- continue;
825
- }
826
- op = body.call(thisArg, _);
827
- }
828
- catch (e) {
829
- op = [6, e];
830
- y = 0;
831
- }
832
- finally {
833
- f = t = 0;
834
- }
835
- if (op[0] & 5)
836
- throw op[1];
837
- return { value: op[0] ? op[1] : void 0, done: true };
838
- }
839
- }
840
- var __createBinding = Object.create ? (function (o, m, k, k2) {
841
- if (k2 === undefined)
842
- k2 = k;
843
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
844
- }) : (function (o, m, k, k2) {
845
- if (k2 === undefined)
846
- k2 = k;
847
- o[k2] = m[k];
848
- });
849
- function __exportStar(m, o) {
850
- for (var p in m)
851
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
852
- __createBinding(o, m, p);
853
- }
854
- function __values(o) {
855
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
856
- if (m)
857
- return m.call(o);
858
- if (o && typeof o.length === "number")
859
- return {
860
- next: function () {
861
- if (o && i >= o.length)
862
- o = void 0;
863
- return { value: o && o[i++], done: !o };
864
- }
865
- };
866
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
867
- }
868
- function __read(o, n) {
869
- var m = typeof Symbol === "function" && o[Symbol.iterator];
870
- if (!m)
871
- return o;
872
- var i = m.call(o), r, ar = [], e;
873
- try {
874
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
875
- ar.push(r.value);
876
- }
877
- catch (error) {
878
- e = { error: error };
879
- }
880
- finally {
881
- try {
882
- if (r && !r.done && (m = i["return"]))
883
- m.call(i);
884
- }
885
- finally {
886
- if (e)
887
- throw e.error;
888
- }
889
- }
890
- return ar;
891
- }
892
- /** @deprecated */
893
- function __spread() {
894
- for (var ar = [], i = 0; i < arguments.length; i++)
895
- ar = ar.concat(__read(arguments[i]));
896
- return ar;
897
- }
898
- /** @deprecated */
899
- function __spreadArrays() {
900
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
901
- s += arguments[i].length;
902
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
903
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
904
- r[k] = a[j];
905
- return r;
906
- }
907
- function __spreadArray(to, from) {
908
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
909
- to[j] = from[i];
910
- return to;
911
- }
912
- function __await(v) {
913
- return this instanceof __await ? (this.v = v, this) : new __await(v);
914
- }
915
- function __asyncGenerator(thisArg, _arguments, generator) {
916
- if (!Symbol.asyncIterator)
917
- throw new TypeError("Symbol.asyncIterator is not defined.");
918
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
919
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
920
- function verb(n) { if (g[n])
921
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
922
- function resume(n, v) { try {
923
- step(g[n](v));
924
- }
925
- catch (e) {
926
- settle(q[0][3], e);
927
- } }
928
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
929
- function fulfill(value) { resume("next", value); }
930
- function reject(value) { resume("throw", value); }
931
- function settle(f, v) { if (f(v), q.shift(), q.length)
932
- resume(q[0][0], q[0][1]); }
933
- }
934
- function __asyncDelegator(o) {
935
- var i, p;
936
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
937
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
938
- }
939
- function __asyncValues(o) {
940
- if (!Symbol.asyncIterator)
941
- throw new TypeError("Symbol.asyncIterator is not defined.");
942
- var m = o[Symbol.asyncIterator], i;
943
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
944
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
945
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
946
- }
947
- function __makeTemplateObject(cooked, raw) {
948
- if (Object.defineProperty) {
949
- Object.defineProperty(cooked, "raw", { value: raw });
950
- }
951
- else {
952
- cooked.raw = raw;
953
- }
954
- return cooked;
955
- }
956
- ;
957
- var __setModuleDefault = Object.create ? (function (o, v) {
958
- Object.defineProperty(o, "default", { enumerable: true, value: v });
959
- }) : function (o, v) {
960
- o["default"] = v;
961
- };
962
- function __importStar(mod) {
963
- if (mod && mod.__esModule)
964
- return mod;
965
- var result = {};
966
- if (mod != null)
967
- for (var k in mod)
968
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
969
- __createBinding(result, mod, k);
970
- __setModuleDefault(result, mod);
971
- return result;
972
- }
973
- function __importDefault(mod) {
974
- return (mod && mod.__esModule) ? mod : { default: mod };
975
- }
976
- function __classPrivateFieldGet(receiver, state, kind, f) {
977
- if (kind === "a" && !f)
978
- throw new TypeError("Private accessor was defined without a getter");
979
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
980
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
981
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
982
- }
983
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
984
- if (kind === "m")
985
- throw new TypeError("Private method is not writable");
986
- if (kind === "a" && !f)
987
- throw new TypeError("Private accessor was defined without a setter");
988
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
989
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
990
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
991
- }
992
-
993
- var AngularEditorToolbarComponent = /** @class */ (function () {
994
- function AngularEditorToolbarComponent(r, editorService, er, doc) {
995
- this.r = r;
996
- this.editorService = editorService;
997
- this.er = er;
998
- this.doc = doc;
999
- this.htmlMode = false;
1000
- this.linkSelected = false;
1001
- this.block = 'default';
1002
- this.fontName = 'Times New Roman';
1003
- this.fontSize = '3';
1004
- this.headings = [
1005
- {
1006
- label: 'Heading 1',
1007
- value: 'h1',
1008
- },
1009
- {
1010
- label: 'Heading 2',
1011
- value: 'h2',
1012
- },
1013
- {
1014
- label: 'Heading 3',
1015
- value: 'h3',
1016
- },
1017
- {
1018
- label: 'Heading 4',
1019
- value: 'h4',
1020
- },
1021
- {
1022
- label: 'Heading 5',
1023
- value: 'h5',
1024
- },
1025
- {
1026
- label: 'Heading 6',
1027
- value: 'h6',
1028
- },
1029
- {
1030
- label: 'Heading 7',
1031
- value: 'h7',
1032
- },
1033
- {
1034
- label: 'Paragraph',
1035
- value: 'p',
1036
- },
1037
- {
1038
- label: 'Predefined',
1039
- value: 'pre'
1040
- },
1041
- {
1042
- label: 'Standard',
1043
- value: 'div'
1044
- },
1045
- {
1046
- label: 'default',
1047
- value: 'default'
1048
- }
1049
- ];
1050
- this.fontSizes = [
1051
- {
1052
- label: '1',
1053
- value: '1',
1054
- },
1055
- {
1056
- label: '2',
1057
- value: '2',
1058
- },
1059
- {
1060
- label: '3',
1061
- value: '3',
1062
- },
1063
- {
1064
- label: '4',
1065
- value: '4',
1066
- },
1067
- {
1068
- label: '5',
1069
- value: '5',
1070
- },
1071
- {
1072
- label: '6',
1073
- value: '6',
1074
- },
1075
- {
1076
- label: '7',
1077
- value: '7',
1078
- }
1079
- ];
1080
- this.customClassId = '-1';
1081
- this.customClassList = [{ label: '', value: '' }];
1082
- // uploadUrl: string;
1083
- this.tagMap = {
1084
- BLOCKQUOTE: 'indent',
1085
- A: 'link'
1086
- };
1087
- this.select = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'P', 'PRE', 'DIV'];
1088
- this.buttons = ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'justifyLeft', 'justifyCenter',
1089
- 'justifyRight', 'justifyFull', 'indent', 'outdent', 'insertUnorderedList', 'insertOrderedList', 'link'];
1090
- this.fonts = [{ label: '', value: '' }];
1091
- this.execute = new core.EventEmitter();
1092
- }
1093
- Object.defineProperty(AngularEditorToolbarComponent.prototype, "customClasses", {
1094
- set: function (classes) {
1095
- if (classes) {
1096
- this._customClasses = classes;
1097
- this.customClassList = this._customClasses.map(function (x, i) { return ({ label: x.name, value: i.toString() }); });
1098
- this.customClassList.unshift({ label: 'Clear Class', value: '-1' });
1099
- }
1100
- },
1101
- enumerable: false,
1102
- configurable: true
1103
- });
1104
- Object.defineProperty(AngularEditorToolbarComponent.prototype, "defaultFontName", {
1105
- set: function (value) {
1106
- if (value) {
1107
- this.fontName = value;
1108
- }
1109
- },
1110
- enumerable: false,
1111
- configurable: true
1112
- });
1113
- Object.defineProperty(AngularEditorToolbarComponent.prototype, "defaultFontSize", {
1114
- set: function (value) {
1115
- if (value) {
1116
- this.fontSize = value;
1117
- }
1118
- },
1119
- enumerable: false,
1120
- configurable: true
1121
- });
1122
- Object.defineProperty(AngularEditorToolbarComponent.prototype, "isLinkButtonDisabled", {
1123
- get: function () {
1124
- return this.htmlMode || !Boolean(this.editorService.selectedText);
1125
- },
1126
- enumerable: false,
1127
- configurable: true
1128
- });
1129
- /**
1130
- * Trigger command from editor header buttons
1131
- * @param command string from toolbar buttons
1132
- */
1133
- AngularEditorToolbarComponent.prototype.triggerCommand = function (command) {
1134
- this.execute.emit(command);
1135
- };
1136
- /**
1137
- * highlight editor buttons when cursor moved or positioning
1138
- */
1139
- AngularEditorToolbarComponent.prototype.triggerButtons = function () {
1140
- var _this = this;
1141
- if (!this.showToolbar) {
1142
- return;
1143
- }
1144
- this.buttons.forEach(function (e) {
1145
- var result = _this.doc.queryCommandState(e);
1146
- var elementById = _this.doc.getElementById(e + '-' + _this.id);
1147
- if (result) {
1148
- _this.r.addClass(elementById, 'active');
1149
- }
1150
- else {
1151
- _this.r.removeClass(elementById, 'active');
1152
- }
1153
- });
1154
- };
1155
- /**
1156
- * trigger highlight editor buttons when cursor moved or positioning in block
1157
- */
1158
- AngularEditorToolbarComponent.prototype.triggerBlocks = function (nodes) {
1159
- var _this = this;
1160
- if (!this.showToolbar) {
1161
- return;
1162
- }
1163
- this.linkSelected = nodes.findIndex(function (x) { return x.nodeName === 'A'; }) > -1;
1164
- var found = false;
1165
- this.select.forEach(function (y) {
1166
- var node = nodes.find(function (x) { return x.nodeName === y; });
1167
- if (node !== undefined && y === node.nodeName) {
1168
- if (found === false) {
1169
- _this.block = node.nodeName.toLowerCase();
1170
- found = true;
1171
- }
1172
- }
1173
- else if (found === false) {
1174
- _this.block = 'default';
1175
- }
1176
- });
1177
- found = false;
1178
- if (this._customClasses) {
1179
- this._customClasses.forEach(function (y, index) {
1180
- var node = nodes.find(function (x) {
1181
- if (x instanceof Element) {
1182
- return x.className === y.class;
1183
- }
1184
- });
1185
- if (node !== undefined) {
1186
- if (found === false) {
1187
- _this.customClassId = index.toString();
1188
- found = true;
1189
- }
1190
- }
1191
- else if (found === false) {
1192
- _this.customClassId = '-1';
1193
- }
1194
- });
1195
- }
1196
- Object.keys(this.tagMap).map(function (e) {
1197
- var elementById = _this.doc.getElementById(_this.tagMap[e] + '-' + _this.id);
1198
- var node = nodes.find(function (x) { return x.nodeName === e; });
1199
- if (node !== undefined && e === node.nodeName) {
1200
- _this.r.addClass(elementById, 'active');
1201
- }
1202
- else {
1203
- _this.r.removeClass(elementById, 'active');
1204
- }
1205
- });
1206
- this.foreColour = this.doc.queryCommandValue('ForeColor');
1207
- this.fontSize = this.doc.queryCommandValue('FontSize');
1208
- this.fontName = this.doc.queryCommandValue('FontName').replace(/"/g, '');
1209
- this.backColor = this.doc.queryCommandValue('backColor');
1210
- };
1211
- /**
1212
- * insert URL link
1213
- */
1214
- AngularEditorToolbarComponent.prototype.insertUrl = function () {
1215
- var url = 'https:\/\/';
1216
- var selection = this.editorService.savedSelection;
1217
- if (selection && selection.commonAncestorContainer.parentElement.nodeName === 'A') {
1218
- var parent = selection.commonAncestorContainer.parentElement;
1219
- if (parent.href !== '') {
1220
- url = parent.href;
1221
- }
1222
- }
1223
- url = prompt('Insert URL link', url);
1224
- if (url && url !== '' && url !== 'https://') {
1225
- this.editorService.createLink(url);
1226
- }
1227
- };
1228
- /**
1229
- * insert Video link
1230
- */
1231
- AngularEditorToolbarComponent.prototype.insertVideo = function () {
1232
- this.execute.emit('');
1233
- var url = prompt('Insert Video link', "https://");
1234
- if (url && url !== '' && url !== "https://") {
1235
- this.editorService.insertVideo(url);
1236
- }
1237
- };
1238
- /** insert color */
1239
- AngularEditorToolbarComponent.prototype.insertColor = function (color, where) {
1240
- this.editorService.insertColor(color, where);
1241
- this.execute.emit('');
1242
- };
1243
- /**
1244
- * set font Name/family
1245
- * @param foreColor string
1246
- */
1247
- AngularEditorToolbarComponent.prototype.setFontName = function (foreColor) {
1248
- this.editorService.setFontName(foreColor);
1249
- this.execute.emit('');
1250
- };
1251
- /**
1252
- * set font Size
1253
- * @param fontSize string
1254
- */
1255
- AngularEditorToolbarComponent.prototype.setFontSize = function (fontSize) {
1256
- this.editorService.setFontSize(fontSize);
1257
- this.execute.emit('');
1258
- };
1259
- /**
1260
- * toggle editor mode (WYSIWYG or SOURCE)
1261
- * @param m boolean
1262
- */
1263
- AngularEditorToolbarComponent.prototype.setEditorMode = function (m) {
1264
- var toggleEditorModeButton = this.doc.getElementById('toggleEditorMode' + '-' + this.id);
1265
- if (m) {
1266
- this.r.addClass(toggleEditorModeButton, 'active');
1267
- }
1268
- else {
1269
- this.r.removeClass(toggleEditorModeButton, 'active');
1270
- }
1271
- this.htmlMode = m;
1272
- };
1273
- /**
1274
- * Upload image when file is selected.
1275
- */
1276
- AngularEditorToolbarComponent.prototype.onFileChanged = function (event) {
1277
- var _this = this;
1278
- var file = event.target.files[0];
1279
- if (file.type.includes('image/')) {
1280
- if (this.upload) {
1281
- this.upload(file).subscribe(function () { return _this.watchUploadImage; });
1282
- }
1283
- else if (this.uploadUrl) {
1284
- this.editorService.uploadImage(file).subscribe(function () { return _this.watchUploadImage; });
1285
- }
1286
- else {
1287
- var reader = new FileReader();
1288
- reader.onload = function (e) {
1289
- var fr = e.currentTarget;
1290
- _this.editorService.insertImage(fr.result.toString());
1291
- };
1292
- reader.readAsDataURL(file);
1293
- }
1294
- }
1295
- };
1296
- AngularEditorToolbarComponent.prototype.watchUploadImage = function (response, event) {
1297
- var imageUrl = response.body.imageUrl;
1298
- this.editorService.insertImage(imageUrl);
1299
- event.srcElement.value = null;
1300
- };
1301
- /**
1302
- * Set custom class
1303
- */
1304
- AngularEditorToolbarComponent.prototype.setCustomClass = function (classId) {
1305
- if (classId === '-1') {
1306
- this.execute.emit('clear');
1307
- }
1308
- else {
1309
- this.editorService.createCustomClass(this._customClasses[+classId]);
1310
- }
1311
- };
1312
- AngularEditorToolbarComponent.prototype.isButtonHidden = function (name) {
1313
- var e_1, _a;
1314
- if (!name) {
1315
- return false;
1316
- }
1317
- if (!(this.hiddenButtons instanceof Array)) {
1318
- return false;
1319
- }
1320
- var result;
1321
- try {
1322
- for (var _b = __values(this.hiddenButtons), _c = _b.next(); !_c.done; _c = _b.next()) {
1323
- var arr = _c.value;
1324
- if (arr instanceof Array) {
1325
- result = arr.find(function (item) { return item === name; });
1326
- }
1327
- if (result) {
1328
- break;
1329
- }
1330
- }
1331
- }
1332
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1333
- finally {
1334
- try {
1335
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1336
- }
1337
- finally { if (e_1) throw e_1.error; }
1338
- }
1339
- return result !== undefined;
1340
- };
1341
- AngularEditorToolbarComponent.prototype.focus = function () {
1342
- this.execute.emit('focus');
1343
- console.log('focused');
1344
- };
1345
- return AngularEditorToolbarComponent;
1346
- }());
1347
- AngularEditorToolbarComponent.decorators = [
1348
- { type: core.Component, args: [{
1349
- selector: 'angular-editor-toolbar',
1350
- template: "<div class=\"angular-editor-toolbar\" *ngIf=\"showToolbar\">\n <div class=\"angular-editor-toolbar-set\">\n <button type=\"button\" title=\"Undo\" class=\"angular-editor-button\" (click)=\"triggerCommand('undo')\"\n [hidden]=\"isButtonHidden('undo')\" tabindex=\"-1\"><i\n class='fa fa-undo'></i></button>\n <button type=\"button\" title=\"Redo\" class=\"angular-editor-button\" (click)=\"triggerCommand('redo')\"\n [hidden]=\"isButtonHidden('redo')\" tabindex=\"-1\"><i\n class='fa fa-repeat'></i></button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'bold-'+id\" type=\"button\" title=\"Bold\" class=\"angular-editor-button\" (click)=\"triggerCommand('bold')\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('bold')\" tabindex=\"-1\"><i class='fa fa-bold'></i></button>\n <button [id]=\"'italic-'+id\" type=\"button\" title=\"Italic\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('italic')\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('italic')\" tabindex=\"-1\"><i class='fa fa-italic'></i>\n </button>\n <button [id]=\"'underline-'+id\" type=\"button\" title=\"Underline\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('underline')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('underline')\"\n tabindex=\"-1\"><i class='fa fa-underline'></i></button>\n <button [id]=\"'strikeThrough-'+id\" type=\"button\" title=\"Strikethrough\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('strikeThrough')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('strikeThrough')\"\n tabindex=\"-1\"><i class='fa fa-strikethrough'></i></button>\n <button [id]=\"'subscript-'+id\" type=\"button\" title=\"Subscript\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('subscript')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('subscript')\"\n tabindex=\"-1\"><i class='fa fa-subscript'></i></button>\n <button [id]=\"'superscript-'+id\" type=\"button\" title=\"Superscript\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('superscript')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('superscript')\"\n tabindex=\"-1\"><i class='fa fa-superscript'></i></button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'justifyLeft-'+id\" type=\"button\" title=\"Justify Left\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('justifyLeft')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('justifyLeft')\"\n tabindex=\"-1\"><i\n class='fa fa-align-left'></i></button>\n <button [id]=\"'justifyCenter-'+id\" type=\"button\" title=\"Justify Center\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('justifyCenter')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('justifyCenter')\"\n tabindex=\"-1\"><i\n class='fa fa-align-center'></i></button>\n <button [id]=\"'justifyRight-'+id\" type=\"button\" title=\"Justify Right\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('justifyRight')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('justifyRight')\"\n tabindex=\"-1\">\n <i class='fa fa-align-right'></i></button>\n <button [id]=\"'justifyFull-'+id\" type=\"button\" title=\"Justify Full\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('justifyFull')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('justifyFull')\"\n tabindex=\"-1\"><i\n class='fa fa-align-justify'></i></button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'indent-'+id\" type=\"button\" title=\"Indent\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('indent')\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('indent')\" tabindex=\"-1\"><i\n class='fa fa-indent'></i></button>\n <button [id]=\"'outdent-'+id\" type=\"button\" title=\"Outdent\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('outdent')\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('outdent')\" tabindex=\"-1\"><i\n class='fa fa-outdent'></i></button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'insertUnorderedList-'+id\" type=\"button\" title=\"Unordered List\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('insertUnorderedList')\" [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('insertUnorderedList')\" tabindex=\"-1\"><i\n class='fa fa-list-ul'></i></button>\n <button [id]=\"'insertOrderedList-'+id\" type=\"button\" title=\"Ordered List\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('insertOrderedList')\" [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('insertOrderedList')\" tabindex=\"-1\"><i\n class='fa fa-list-ol'></i></button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n\n <ae-select class=\"select-heading\" [options]=\"headings\"\n [(ngModel)]=\"block\"\n (change)=\"triggerCommand(block)\"\n [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('heading')\"\n tabindex=\"-1\"></ae-select>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n\n <ae-select class=\"select-font\" [options]=\"fonts\"\n [(ngModel)]=\"fontName\"\n (change)=\"setFontName(fontName)\"\n [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('fontName')\"\n tabindex=\"-1\"></ae-select>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n\n <ae-select class=\"select-font-size\" [options]=\"fontSizes\"\n [(ngModel)]=\"fontSize\"\n (change)=\"setFontSize(fontSize)\"\n [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('fontSize')\"\n tabindex=\"-1\">\n </ae-select>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <input\n style=\"display: none\"\n type=\"color\" (change)=\"insertColor(fgInput.value, 'textColor')\"\n #fgInput>\n <button [id]=\"'foregroundColorPicker-'+id\" type=\"button\" class=\"angular-editor-button\" (click)=\"focus(); ; fgInput.click()\"\n title=\"Text Color\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('textColor')\" tabindex=\"-1\"><span\n class=\"color-label foreground\"><i class=\"fa fa-font\"></i></span>\n </button>\n <input\n style=\"display: none\"\n type=\"color\" (change)=\"insertColor(bgInput.value, 'backgroundColor')\"\n #bgInput>\n <button [id]=\"'backgroundColorPicker-'+id\" type=\"button\" class=\"angular-editor-button\" (click)=\"focus(); ; bgInput.click()\"\n title=\"Background Color\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('backgroundColor')\" tabindex=\"-1\"><span\n class=\"color-label background\"><i class=\"fa fa-font\"></i></span>\n </button>\n </div>\n <div *ngIf=\"_customClasses\" class=\"angular-editor-toolbar-set\">\n <ae-select class=\"select-custom-style\" [options]=\"customClassList\"\n [(ngModel)]=\"customClassId\"\n (change)=\"setCustomClass(customClassId)\"\n [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('customClasses')\"\n tabindex=\"-1\"></ae-select>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'link-'+id\" type=\"button\" class=\"angular-editor-button\" (click)=\"insertUrl()\"\n title=\"Insert Link\" [disabled]=\"isLinkButtonDisabled\" [hidden]=\"isButtonHidden('link')\" tabindex=\"-1\">\n <i class=\"fa fa-link\"></i>\n </button>\n <button [id]=\"'unlink-'+id\" type=\"button\" class=\"angular-editor-button\" (click)=\"triggerCommand('unlink')\"\n title=\"Unlink\" [disabled]=\"htmlMode || !linkSelected\" [hidden]=\"isButtonHidden('unlink')\" tabindex=\"-1\">\n <i class=\"fa fa-chain-broken\"></i>\n </button>\n <input\n style=\"display: none\"\n accept=\"image/*\"\n type=\"file\" (change)=\"onFileChanged($event)\"\n #fileInput>\n <button [id]=\"'insertImage-'+id\" type=\"button\" class=\"angular-editor-button\" (click)=\"focus(); fileInput.click()\"\n title=\"Insert Image\"\n [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('insertImage')\" tabindex=\"-1\"><i class=\"fa fa-image\"></i>\n </button>\n <button [id]=\"'insertVideo-'+id\" type=\"button\" class=\"angular-editor-button\"\n (click)=\"insertVideo()\" title=\"Insert Video\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('insertVideo')\"\n tabindex=\"-1\"><i\n class=\"fa fa-video-camera\"></i></button>\n <button [id]=\"'insertHorizontalRule-'+id\" type=\"button\" title=\"Horizontal Line\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('insertHorizontalRule')\" [disabled]=\"htmlMode\"\n [hidden]=\"isButtonHidden('insertHorizontalRule')\" tabindex=\"-1\"><i\n class=\"fa fa-minus\"></i></button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'clearFormatting-'+id\" type=\"button\" title=\"Clear Formatting\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('removeFormat')\" [disabled]=\"htmlMode\" [hidden]=\"isButtonHidden('removeFormat')\"\n tabindex=\"-1\"><i class='fa fa-remove'></i>\n </button>\n </div>\n <div class=\"angular-editor-toolbar-set\">\n <button [id]=\"'toggleEditorMode-'+id\" type=\"button\" title=\"HTML Code\" class=\"angular-editor-button\"\n (click)=\"triggerCommand('toggleEditorMode')\" [hidden]=\"isButtonHidden('toggleEditorMode')\" tabindex=\"-1\"><i\n class='fa fa-code'></i></button>\n </div>\n</div>\n",
1351
- styles: ["@charset \"UTF-8\";\n/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0);src:url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.eot#iefix&v=4.7.0) format(\"embedded-opentype\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0) format(\"woff2\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0) format(\"woff\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0) format(\"truetype\"),url(https://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format(\"svg\");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.3333333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.2857142857em;text-align:center}.fa-ul{padding-left:0;margin-left:2.1428571429em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.1428571429em;width:2.1428571429em;top:.1428571429em;text-align:center}.fa-li.fa-lg{left:-1.8571428571em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:\"\uF000\"}.fa-music:before{content:\"\uF001\"}.fa-search:before{content:\"\uF002\"}.fa-envelope-o:before{content:\"\uF003\"}.fa-heart:before{content:\"\uF004\"}.fa-star:before{content:\"\uF005\"}.fa-star-o:before{content:\"\uF006\"}.fa-user:before{content:\"\uF007\"}.fa-film:before{content:\"\uF008\"}.fa-th-large:before{content:\"\uF009\"}.fa-th:before{content:\"\uF00A\"}.fa-th-list:before{content:\"\uF00B\"}.fa-check:before{content:\"\uF00C\"}.fa-close:before,.fa-remove:before,.fa-times:before{content:\"\uF00D\"}.fa-search-plus:before{content:\"\uF00E\"}.fa-search-minus:before{content:\"\uF010\"}.fa-power-off:before{content:\"\uF011\"}.fa-signal:before{content:\"\uF012\"}.fa-cog:before,.fa-gear:before{content:\"\uF013\"}.fa-trash-o:before{content:\"\uF014\"}.fa-home:before{content:\"\uF015\"}.fa-file-o:before{content:\"\uF016\"}.fa-clock-o:before{content:\"\uF017\"}.fa-road:before{content:\"\uF018\"}.fa-download:before{content:\"\uF019\"}.fa-arrow-circle-o-down:before{content:\"\uF01A\"}.fa-arrow-circle-o-up:before{content:\"\uF01B\"}.fa-inbox:before{content:\"\uF01C\"}.fa-play-circle-o:before{content:\"\uF01D\"}.fa-repeat:before,.fa-rotate-right:before{content:\"\uF01E\"}.fa-refresh:before{content:\"\uF021\"}.fa-list-alt:before{content:\"\uF022\"}.fa-lock:before{content:\"\uF023\"}.fa-flag:before{content:\"\uF024\"}.fa-headphones:before{content:\"\uF025\"}.fa-volume-off:before{content:\"\uF026\"}.fa-volume-down:before{content:\"\uF027\"}.fa-volume-up:before{content:\"\uF028\"}.fa-qrcode:before{content:\"\uF029\"}.fa-barcode:before{content:\"\uF02A\"}.fa-tag:before{content:\"\uF02B\"}.fa-tags:before{content:\"\uF02C\"}.fa-book:before{content:\"\uF02D\"}.fa-bookmark:before{content:\"\uF02E\"}.fa-print:before{content:\"\uF02F\"}.fa-camera:before{content:\"\uF030\"}.fa-font:before{content:\"\uF031\"}.fa-bold:before{content:\"\uF032\"}.fa-italic:before{content:\"\uF033\"}.fa-text-height:before{content:\"\uF034\"}.fa-text-width:before{content:\"\uF035\"}.fa-align-left:before{content:\"\uF036\"}.fa-align-center:before{content:\"\uF037\"}.fa-align-right:before{content:\"\uF038\"}.fa-align-justify:before{content:\"\uF039\"}.fa-list:before{content:\"\uF03A\"}.fa-dedent:before,.fa-outdent:before{content:\"\uF03B\"}.fa-indent:before{content:\"\uF03C\"}.fa-video-camera:before{content:\"\uF03D\"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:\"\uF03E\"}.fa-pencil:before{content:\"\uF040\"}.fa-map-marker:before{content:\"\uF041\"}.fa-adjust:before{content:\"\uF042\"}.fa-tint:before{content:\"\uF043\"}.fa-edit:before,.fa-pencil-square-o:before{content:\"\uF044\"}.fa-share-square-o:before{content:\"\uF045\"}.fa-check-square-o:before{content:\"\uF046\"}.fa-arrows:before{content:\"\uF047\"}.fa-step-backward:before{content:\"\uF048\"}.fa-fast-backward:before{content:\"\uF049\"}.fa-backward:before{content:\"\uF04A\"}.fa-play:before{content:\"\uF04B\"}.fa-pause:before{content:\"\uF04C\"}.fa-stop:before{content:\"\uF04D\"}.fa-forward:before{content:\"\uF04E\"}.fa-fast-forward:before{content:\"\uF050\"}.fa-step-forward:before{content:\"\uF051\"}.fa-eject:before{content:\"\uF052\"}.fa-chevron-left:before{content:\"\uF053\"}.fa-chevron-right:before{content:\"\uF054\"}.fa-plus-circle:before{content:\"\uF055\"}.fa-minus-circle:before{content:\"\uF056\"}.fa-times-circle:before{content:\"\uF057\"}.fa-check-circle:before{content:\"\uF058\"}.fa-question-circle:before{content:\"\uF059\"}.fa-info-circle:before{content:\"\uF05A\"}.fa-crosshairs:before{content:\"\uF05B\"}.fa-times-circle-o:before{content:\"\uF05C\"}.fa-check-circle-o:before{content:\"\uF05D\"}.fa-ban:before{content:\"\uF05E\"}.fa-arrow-left:before{content:\"\uF060\"}.fa-arrow-right:before{content:\"\uF061\"}.fa-arrow-up:before{content:\"\uF062\"}.fa-arrow-down:before{content:\"\uF063\"}.fa-mail-forward:before,.fa-share:before{content:\"\uF064\"}.fa-expand:before{content:\"\uF065\"}.fa-compress:before{content:\"\uF066\"}.fa-plus:before{content:\"\uF067\"}.fa-minus:before{content:\"\uF068\"}.fa-asterisk:before{content:\"\uF069\"}.fa-exclamation-circle:before{content:\"\uF06A\"}.fa-gift:before{content:\"\uF06B\"}.fa-leaf:before{content:\"\uF06C\"}.fa-fire:before{content:\"\uF06D\"}.fa-eye:before{content:\"\uF06E\"}.fa-eye-slash:before{content:\"\uF070\"}.fa-exclamation-triangle:before,.fa-warning:before{content:\"\uF071\"}.fa-plane:before{content:\"\uF072\"}.fa-calendar:before{content:\"\uF073\"}.fa-random:before{content:\"\uF074\"}.fa-comment:before{content:\"\uF075\"}.fa-magnet:before{content:\"\uF076\"}.fa-chevron-up:before{content:\"\uF077\"}.fa-chevron-down:before{content:\"\uF078\"}.fa-retweet:before{content:\"\uF079\"}.fa-shopping-cart:before{content:\"\uF07A\"}.fa-folder:before{content:\"\uF07B\"}.fa-folder-open:before{content:\"\uF07C\"}.fa-arrows-v:before{content:\"\uF07D\"}.fa-arrows-h:before{content:\"\uF07E\"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:\"\uF080\"}.fa-twitter-square:before{content:\"\uF081\"}.fa-facebook-square:before{content:\"\uF082\"}.fa-camera-retro:before{content:\"\uF083\"}.fa-key:before{content:\"\uF084\"}.fa-cogs:before,.fa-gears:before{content:\"\uF085\"}.fa-comments:before{content:\"\uF086\"}.fa-thumbs-o-up:before{content:\"\uF087\"}.fa-thumbs-o-down:before{content:\"\uF088\"}.fa-star-half:before{content:\"\uF089\"}.fa-heart-o:before{content:\"\uF08A\"}.fa-sign-out:before{content:\"\uF08B\"}.fa-linkedin-square:before{content:\"\uF08C\"}.fa-thumb-tack:before{content:\"\uF08D\"}.fa-external-link:before{content:\"\uF08E\"}.fa-sign-in:before{content:\"\uF090\"}.fa-trophy:before{content:\"\uF091\"}.fa-github-square:before{content:\"\uF092\"}.fa-upload:before{content:\"\uF093\"}.fa-lemon-o:before{content:\"\uF094\"}.fa-phone:before{content:\"\uF095\"}.fa-square-o:before{content:\"\uF096\"}.fa-bookmark-o:before{content:\"\uF097\"}.fa-phone-square:before{content:\"\uF098\"}.fa-twitter:before{content:\"\uF099\"}.fa-facebook-f:before,.fa-facebook:before{content:\"\uF09A\"}.fa-github:before{content:\"\uF09B\"}.fa-unlock:before{content:\"\uF09C\"}.fa-credit-card:before{content:\"\uF09D\"}.fa-feed:before,.fa-rss:before{content:\"\uF09E\"}.fa-hdd-o:before{content:\"\uF0A0\"}.fa-bullhorn:before{content:\"\uF0A1\"}.fa-bell:before{content:\"\uF0F3\"}.fa-certificate:before{content:\"\uF0A3\"}.fa-hand-o-right:before{content:\"\uF0A4\"}.fa-hand-o-left:before{content:\"\uF0A5\"}.fa-hand-o-up:before{content:\"\uF0A6\"}.fa-hand-o-down:before{content:\"\uF0A7\"}.fa-arrow-circle-left:before{content:\"\uF0A8\"}.fa-arrow-circle-right:before{content:\"\uF0A9\"}.fa-arrow-circle-up:before{content:\"\uF0AA\"}.fa-arrow-circle-down:before{content:\"\uF0AB\"}.fa-globe:before{content:\"\uF0AC\"}.fa-wrench:before{content:\"\uF0AD\"}.fa-tasks:before{content:\"\uF0AE\"}.fa-filter:before{content:\"\uF0B0\"}.fa-briefcase:before{content:\"\uF0B1\"}.fa-arrows-alt:before{content:\"\uF0B2\"}.fa-group:before,.fa-users:before{content:\"\uF0C0\"}.fa-chain:before,.fa-link:before{content:\"\uF0C1\"}.fa-cloud:before{content:\"\uF0C2\"}.fa-flask:before{content:\"\uF0C3\"}.fa-cut:before,.fa-scissors:before{content:\"\uF0C4\"}.fa-copy:before,.fa-files-o:before{content:\"\uF0C5\"}.fa-paperclip:before{content:\"\uF0C6\"}.fa-floppy-o:before,.fa-save:before{content:\"\uF0C7\"}.fa-square:before{content:\"\uF0C8\"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:\"\uF0C9\"}.fa-list-ul:before{content:\"\uF0CA\"}.fa-list-ol:before{content:\"\uF0CB\"}.fa-strikethrough:before{content:\"\uF0CC\"}.fa-underline:before{content:\"\uF0CD\"}.fa-table:before{content:\"\uF0CE\"}.fa-magic:before{content:\"\uF0D0\"}.fa-truck:before{content:\"\uF0D1\"}.fa-pinterest:before{content:\"\uF0D2\"}.fa-pinterest-square:before{content:\"\uF0D3\"}.fa-google-plus-square:before{content:\"\uF0D4\"}.fa-google-plus:before{content:\"\uF0D5\"}.fa-money:before{content:\"\uF0D6\"}.fa-caret-down:before{content:\"\uF0D7\"}.fa-caret-up:before{content:\"\uF0D8\"}.fa-caret-left:before{content:\"\uF0D9\"}.fa-caret-right:before{content:\"\uF0DA\"}.fa-columns:before{content:\"\uF0DB\"}.fa-sort:before,.fa-unsorted:before{content:\"\uF0DC\"}.fa-sort-desc:before,.fa-sort-down:before{content:\"\uF0DD\"}.fa-sort-asc:before,.fa-sort-up:before{content:\"\uF0DE\"}.fa-envelope:before{content:\"\uF0E0\"}.fa-linkedin:before{content:\"\uF0E1\"}.fa-rotate-left:before,.fa-undo:before{content:\"\uF0E2\"}.fa-gavel:before,.fa-legal:before{content:\"\uF0E3\"}.fa-dashboard:before,.fa-tachometer:before{content:\"\uF0E4\"}.fa-comment-o:before{content:\"\uF0E5\"}.fa-comments-o:before{content:\"\uF0E6\"}.fa-bolt:before,.fa-flash:before{content:\"\uF0E7\"}.fa-sitemap:before{content:\"\uF0E8\"}.fa-umbrella:before{content:\"\uF0E9\"}.fa-clipboard:before,.fa-paste:before{content:\"\uF0EA\"}.fa-lightbulb-o:before{content:\"\uF0EB\"}.fa-exchange:before{content:\"\uF0EC\"}.fa-cloud-download:before{content:\"\uF0ED\"}.fa-cloud-upload:before{content:\"\uF0EE\"}.fa-user-md:before{content:\"\uF0F0\"}.fa-stethoscope:before{content:\"\uF0F1\"}.fa-suitcase:before{content:\"\uF0F2\"}.fa-bell-o:before{content:\"\uF0A2\"}.fa-coffee:before{content:\"\uF0F4\"}.fa-cutlery:before{content:\"\uF0F5\"}.fa-file-text-o:before{content:\"\uF0F6\"}.fa-building-o:before{content:\"\uF0F7\"}.fa-hospital-o:before{content:\"\uF0F8\"}.fa-ambulance:before{content:\"\uF0F9\"}.fa-medkit:before{content:\"\uF0FA\"}.fa-fighter-jet:before{content:\"\uF0FB\"}.fa-beer:before{content:\"\uF0FC\"}.fa-h-square:before{content:\"\uF0FD\"}.fa-plus-square:before{content:\"\uF0FE\"}.fa-angle-double-left:before{content:\"\uF100\"}.fa-angle-double-right:before{content:\"\uF101\"}.fa-angle-double-up:before{content:\"\uF102\"}.fa-angle-double-down:before{content:\"\uF103\"}.fa-angle-left:before{content:\"\uF104\"}.fa-angle-right:before{content:\"\uF105\"}.fa-angle-up:before{content:\"\uF106\"}.fa-angle-down:before{content:\"\uF107\"}.fa-desktop:before{content:\"\uF108\"}.fa-laptop:before{content:\"\uF109\"}.fa-tablet:before{content:\"\uF10A\"}.fa-mobile-phone:before,.fa-mobile:before{content:\"\uF10B\"}.fa-circle-o:before{content:\"\uF10C\"}.fa-quote-left:before{content:\"\uF10D\"}.fa-quote-right:before{content:\"\uF10E\"}.fa-spinner:before{content:\"\uF110\"}.fa-circle:before{content:\"\uF111\"}.fa-mail-reply:before,.fa-reply:before{content:\"\uF112\"}.fa-github-alt:before{content:\"\uF113\"}.fa-folder-o:before{content:\"\uF114\"}.fa-folder-open-o:before{content:\"\uF115\"}.fa-smile-o:before{content:\"\uF118\"}.fa-frown-o:before{content:\"\uF119\"}.fa-meh-o:before{content:\"\uF11A\"}.fa-gamepad:before{content:\"\uF11B\"}.fa-keyboard-o:before{content:\"\uF11C\"}.fa-flag-o:before{content:\"\uF11D\"}.fa-flag-checkered:before{content:\"\uF11E\"}.fa-terminal:before{content:\"\uF120\"}.fa-code:before{content:\"\uF121\"}.fa-mail-reply-all:before,.fa-reply-all:before{content:\"\uF122\"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:\"\uF123\"}.fa-location-arrow:before{content:\"\uF124\"}.fa-crop:before{content:\"\uF125\"}.fa-code-fork:before{content:\"\uF126\"}.fa-chain-broken:before,.fa-unlink:before{content:\"\uF127\"}.fa-question:before{content:\"\uF128\"}.fa-info:before{content:\"\uF129\"}.fa-exclamation:before{content:\"\uF12A\"}.fa-superscript:before{content:\"\uF12B\"}.fa-subscript:before{content:\"\uF12C\"}.fa-eraser:before{content:\"\uF12D\"}.fa-puzzle-piece:before{content:\"\uF12E\"}.fa-microphone:before{content:\"\uF130\"}.fa-microphone-slash:before{content:\"\uF131\"}.fa-shield:before{content:\"\uF132\"}.fa-calendar-o:before{content:\"\uF133\"}.fa-fire-extinguisher:before{content:\"\uF134\"}.fa-rocket:before{content:\"\uF135\"}.fa-maxcdn:before{content:\"\uF136\"}.fa-chevron-circle-left:before{content:\"\uF137\"}.fa-chevron-circle-right:before{content:\"\uF138\"}.fa-chevron-circle-up:before{content:\"\uF139\"}.fa-chevron-circle-down:before{content:\"\uF13A\"}.fa-html5:before{content:\"\uF13B\"}.fa-css3:before{content:\"\uF13C\"}.fa-anchor:before{content:\"\uF13D\"}.fa-unlock-alt:before{content:\"\uF13E\"}.fa-bullseye:before{content:\"\uF140\"}.fa-ellipsis-h:before{content:\"\uF141\"}.fa-ellipsis-v:before{content:\"\uF142\"}.fa-rss-square:before{content:\"\uF143\"}.fa-play-circle:before{content:\"\uF144\"}.fa-ticket:before{content:\"\uF145\"}.fa-minus-square:before{content:\"\uF146\"}.fa-minus-square-o:before{content:\"\uF147\"}.fa-level-up:before{content:\"\uF148\"}.fa-level-down:before{content:\"\uF149\"}.fa-check-square:before{content:\"\uF14A\"}.fa-pencil-square:before{content:\"\uF14B\"}.fa-external-link-square:before{content:\"\uF14C\"}.fa-share-square:before{content:\"\uF14D\"}.fa-compass:before{content:\"\uF14E\"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:\"\uF150\"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:\"\uF151\"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:\"\uF152\"}.fa-eur:before,.fa-euro:before{content:\"\uF153\"}.fa-gbp:before{content:\"\uF154\"}.fa-dollar:before,.fa-usd:before{content:\"\uF155\"}.fa-inr:before,.fa-rupee:before{content:\"\uF156\"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:\"\uF157\"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:\"\uF158\"}.fa-krw:before,.fa-won:before{content:\"\uF159\"}.fa-bitcoin:before,.fa-btc:before{content:\"\uF15A\"}.fa-file:before{content:\"\uF15B\"}.fa-file-text:before{content:\"\uF15C\"}.fa-sort-alpha-asc:before{content:\"\uF15D\"}.fa-sort-alpha-desc:before{content:\"\uF15E\"}.fa-sort-amount-asc:before{content:\"\uF160\"}.fa-sort-amount-desc:before{content:\"\uF161\"}.fa-sort-numeric-asc:before{content:\"\uF162\"}.fa-sort-numeric-desc:before{content:\"\uF163\"}.fa-thumbs-up:before{content:\"\uF164\"}.fa-thumbs-down:before{content:\"\uF165\"}.fa-youtube-square:before{content:\"\uF166\"}.fa-youtube:before{content:\"\uF167\"}.fa-xing:before{content:\"\uF168\"}.fa-xing-square:before{content:\"\uF169\"}.fa-youtube-play:before{content:\"\uF16A\"}.fa-dropbox:before{content:\"\uF16B\"}.fa-stack-overflow:before{content:\"\uF16C\"}.fa-instagram:before{content:\"\uF16D\"}.fa-flickr:before{content:\"\uF16E\"}.fa-adn:before{content:\"\uF170\"}.fa-bitbucket:before{content:\"\uF171\"}.fa-bitbucket-square:before{content:\"\uF172\"}.fa-tumblr:before{content:\"\uF173\"}.fa-tumblr-square:before{content:\"\uF174\"}.fa-long-arrow-down:before{content:\"\uF175\"}.fa-long-arrow-up:before{content:\"\uF176\"}.fa-long-arrow-left:before{content:\"\uF177\"}.fa-long-arrow-right:before{content:\"\uF178\"}.fa-apple:before{content:\"\uF179\"}.fa-windows:before{content:\"\uF17A\"}.fa-android:before{content:\"\uF17B\"}.fa-linux:before{content:\"\uF17C\"}.fa-dribbble:before{content:\"\uF17D\"}.fa-skype:before{content:\"\uF17E\"}.fa-foursquare:before{content:\"\uF180\"}.fa-trello:before{content:\"\uF181\"}.fa-female:before{content:\"\uF182\"}.fa-male:before{content:\"\uF183\"}.fa-gittip:before,.fa-gratipay:before{content:\"\uF184\"}.fa-sun-o:before{content:\"\uF185\"}.fa-moon-o:before{content:\"\uF186\"}.fa-archive:before{content:\"\uF187\"}.fa-bug:before{content:\"\uF188\"}.fa-vk:before{content:\"\uF189\"}.fa-weibo:before{content:\"\uF18A\"}.fa-renren:before{content:\"\uF18B\"}.fa-pagelines:before{content:\"\uF18C\"}.fa-stack-exchange:before{content:\"\uF18D\"}.fa-arrow-circle-o-right:before{content:\"\uF18E\"}.fa-arrow-circle-o-left:before{content:\"\uF190\"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:\"\uF191\"}.fa-dot-circle-o:before{content:\"\uF192\"}.fa-wheelchair:before{content:\"\uF193\"}.fa-vimeo-square:before{content:\"\uF194\"}.fa-try:before,.fa-turkish-lira:before{content:\"\uF195\"}.fa-plus-square-o:before{content:\"\uF196\"}.fa-space-shuttle:before{content:\"\uF197\"}.fa-slack:before{content:\"\uF198\"}.fa-envelope-square:before{content:\"\uF199\"}.fa-wordpress:before{content:\"\uF19A\"}.fa-openid:before{content:\"\uF19B\"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:\"\uF19C\"}.fa-graduation-cap:before,.fa-mortar-board:before{content:\"\uF19D\"}.fa-yahoo:before{content:\"\uF19E\"}.fa-google:before{content:\"\uF1A0\"}.fa-reddit:before{content:\"\uF1A1\"}.fa-reddit-square:before{content:\"\uF1A2\"}.fa-stumbleupon-circle:before{content:\"\uF1A3\"}.fa-stumbleupon:before{content:\"\uF1A4\"}.fa-delicious:before{content:\"\uF1A5\"}.fa-digg:before{content:\"\uF1A6\"}.fa-pied-piper-pp:before{content:\"\uF1A7\"}.fa-pied-piper-alt:before{content:\"\uF1A8\"}.fa-drupal:before{content:\"\uF1A9\"}.fa-joomla:before{content:\"\uF1AA\"}.fa-language:before{content:\"\uF1AB\"}.fa-fax:before{content:\"\uF1AC\"}.fa-building:before{content:\"\uF1AD\"}.fa-child:before{content:\"\uF1AE\"}.fa-paw:before{content:\"\uF1B0\"}.fa-spoon:before{content:\"\uF1B1\"}.fa-cube:before{content:\"\uF1B2\"}.fa-cubes:before{content:\"\uF1B3\"}.fa-behance:before{content:\"\uF1B4\"}.fa-behance-square:before{content:\"\uF1B5\"}.fa-steam:before{content:\"\uF1B6\"}.fa-steam-square:before{content:\"\uF1B7\"}.fa-recycle:before{content:\"\uF1B8\"}.fa-automobile:before,.fa-car:before{content:\"\uF1B9\"}.fa-cab:before,.fa-taxi:before{content:\"\uF1BA\"}.fa-tree:before{content:\"\uF1BB\"}.fa-spotify:before{content:\"\uF1BC\"}.fa-deviantart:before{content:\"\uF1BD\"}.fa-soundcloud:before{content:\"\uF1BE\"}.fa-database:before{content:\"\uF1C0\"}.fa-file-pdf-o:before{content:\"\uF1C1\"}.fa-file-word-o:before{content:\"\uF1C2\"}.fa-file-excel-o:before{content:\"\uF1C3\"}.fa-file-powerpoint-o:before{content:\"\uF1C4\"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:\"\uF1C5\"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:\"\uF1C6\"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:\"\uF1C7\"}.fa-file-movie-o:before,.fa-file-video-o:before{content:\"\uF1C8\"}.fa-file-code-o:before{content:\"\uF1C9\"}.fa-vine:before{content:\"\uF1CA\"}.fa-codepen:before{content:\"\uF1CB\"}.fa-jsfiddle:before{content:\"\uF1CC\"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:\"\uF1CD\"}.fa-circle-o-notch:before{content:\"\uF1CE\"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:\"\uF1D0\"}.fa-empire:before,.fa-ge:before{content:\"\uF1D1\"}.fa-git-square:before{content:\"\uF1D2\"}.fa-git:before{content:\"\uF1D3\"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:\"\uF1D4\"}.fa-tencent-weibo:before{content:\"\uF1D5\"}.fa-qq:before{content:\"\uF1D6\"}.fa-wechat:before,.fa-weixin:before{content:\"\uF1D7\"}.fa-paper-plane:before,.fa-send:before{content:\"\uF1D8\"}.fa-paper-plane-o:before,.fa-send-o:before{content:\"\uF1D9\"}.fa-history:before{content:\"\uF1DA\"}.fa-circle-thin:before{content:\"\uF1DB\"}.fa-header:before{content:\"\uF1DC\"}.fa-paragraph:before{content:\"\uF1DD\"}.fa-sliders:before{content:\"\uF1DE\"}.fa-share-alt:before{content:\"\uF1E0\"}.fa-share-alt-square:before{content:\"\uF1E1\"}.fa-bomb:before{content:\"\uF1E2\"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:\"\uF1E3\"}.fa-tty:before{content:\"\uF1E4\"}.fa-binoculars:before{content:\"\uF1E5\"}.fa-plug:before{content:\"\uF1E6\"}.fa-slideshare:before{content:\"\uF1E7\"}.fa-twitch:before{content:\"\uF1E8\"}.fa-yelp:before{content:\"\uF1E9\"}.fa-newspaper-o:before{content:\"\uF1EA\"}.fa-wifi:before{content:\"\uF1EB\"}.fa-calculator:before{content:\"\uF1EC\"}.fa-paypal:before{content:\"\uF1ED\"}.fa-google-wallet:before{content:\"\uF1EE\"}.fa-cc-visa:before{content:\"\uF1F0\"}.fa-cc-mastercard:before{content:\"\uF1F1\"}.fa-cc-discover:before{content:\"\uF1F2\"}.fa-cc-amex:before{content:\"\uF1F3\"}.fa-cc-paypal:before{content:\"\uF1F4\"}.fa-cc-stripe:before{content:\"\uF1F5\"}.fa-bell-slash:before{content:\"\uF1F6\"}.fa-bell-slash-o:before{content:\"\uF1F7\"}.fa-trash:before{content:\"\uF1F8\"}.fa-copyright:before{content:\"\uF1F9\"}.fa-at:before{content:\"\uF1FA\"}.fa-eyedropper:before{content:\"\uF1FB\"}.fa-paint-brush:before{content:\"\uF1FC\"}.fa-birthday-cake:before{content:\"\uF1FD\"}.fa-area-chart:before{content:\"\uF1FE\"}.fa-pie-chart:before{content:\"\uF200\"}.fa-line-chart:before{content:\"\uF201\"}.fa-lastfm:before{content:\"\uF202\"}.fa-lastfm-square:before{content:\"\uF203\"}.fa-toggle-off:before{content:\"\uF204\"}.fa-toggle-on:before{content:\"\uF205\"}.fa-bicycle:before{content:\"\uF206\"}.fa-bus:before{content:\"\uF207\"}.fa-ioxhost:before{content:\"\uF208\"}.fa-angellist:before{content:\"\uF209\"}.fa-cc:before{content:\"\uF20A\"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:\"\uF20B\"}.fa-meanpath:before{content:\"\uF20C\"}.fa-buysellads:before{content:\"\uF20D\"}.fa-connectdevelop:before{content:\"\uF20E\"}.fa-dashcube:before{content:\"\uF210\"}.fa-forumbee:before{content:\"\uF211\"}.fa-leanpub:before{content:\"\uF212\"}.fa-sellsy:before{content:\"\uF213\"}.fa-shirtsinbulk:before{content:\"\uF214\"}.fa-simplybuilt:before{content:\"\uF215\"}.fa-skyatlas:before{content:\"\uF216\"}.fa-cart-plus:before{content:\"\uF217\"}.fa-cart-arrow-down:before{content:\"\uF218\"}.fa-diamond:before{content:\"\uF219\"}.fa-ship:before{content:\"\uF21A\"}.fa-user-secret:before{content:\"\uF21B\"}.fa-motorcycle:before{content:\"\uF21C\"}.fa-street-view:before{content:\"\uF21D\"}.fa-heartbeat:before{content:\"\uF21E\"}.fa-venus:before{content:\"\uF221\"}.fa-mars:before{content:\"\uF222\"}.fa-mercury:before{content:\"\uF223\"}.fa-intersex:before,.fa-transgender:before{content:\"\uF224\"}.fa-transgender-alt:before{content:\"\uF225\"}.fa-venus-double:before{content:\"\uF226\"}.fa-mars-double:before{content:\"\uF227\"}.fa-venus-mars:before{content:\"\uF228\"}.fa-mars-stroke:before{content:\"\uF229\"}.fa-mars-stroke-v:before{content:\"\uF22A\"}.fa-mars-stroke-h:before{content:\"\uF22B\"}.fa-neuter:before{content:\"\uF22C\"}.fa-genderless:before{content:\"\uF22D\"}.fa-facebook-official:before{content:\"\uF230\"}.fa-pinterest-p:before{content:\"\uF231\"}.fa-whatsapp:before{content:\"\uF232\"}.fa-server:before{content:\"\uF233\"}.fa-user-plus:before{content:\"\uF234\"}.fa-user-times:before{content:\"\uF235\"}.fa-bed:before,.fa-hotel:before{content:\"\uF236\"}.fa-viacoin:before{content:\"\uF237\"}.fa-train:before{content:\"\uF238\"}.fa-subway:before{content:\"\uF239\"}.fa-medium:before{content:\"\uF23A\"}.fa-y-combinator:before,.fa-yc:before{content:\"\uF23B\"}.fa-optin-monster:before{content:\"\uF23C\"}.fa-opencart:before{content:\"\uF23D\"}.fa-expeditedssl:before{content:\"\uF23E\"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:\"\uF240\"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:\"\uF241\"}.fa-battery-2:before,.fa-battery-half:before{content:\"\uF242\"}.fa-battery-1:before,.fa-battery-quarter:before{content:\"\uF243\"}.fa-battery-0:before,.fa-battery-empty:before{content:\"\uF244\"}.fa-mouse-pointer:before{content:\"\uF245\"}.fa-i-cursor:before{content:\"\uF246\"}.fa-object-group:before{content:\"\uF247\"}.fa-object-ungroup:before{content:\"\uF248\"}.fa-sticky-note:before{content:\"\uF249\"}.fa-sticky-note-o:before{content:\"\uF24A\"}.fa-cc-jcb:before{content:\"\uF24B\"}.fa-cc-diners-club:before{content:\"\uF24C\"}.fa-clone:before{content:\"\uF24D\"}.fa-balance-scale:before{content:\"\uF24E\"}.fa-hourglass-o:before{content:\"\uF250\"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:\"\uF251\"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:\"\uF252\"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:\"\uF253\"}.fa-hourglass:before{content:\"\uF254\"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:\"\uF255\"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:\"\uF256\"}.fa-hand-scissors-o:before{content:\"\uF257\"}.fa-hand-lizard-o:before{content:\"\uF258\"}.fa-hand-spock-o:before{content:\"\uF259\"}.fa-hand-pointer-o:before{content:\"\uF25A\"}.fa-hand-peace-o:before{content:\"\uF25B\"}.fa-trademark:before{content:\"\uF25C\"}.fa-registered:before{content:\"\uF25D\"}.fa-creative-commons:before{content:\"\uF25E\"}.fa-gg:before{content:\"\uF260\"}.fa-gg-circle:before{content:\"\uF261\"}.fa-tripadvisor:before{content:\"\uF262\"}.fa-odnoklassniki:before{content:\"\uF263\"}.fa-odnoklassniki-square:before{content:\"\uF264\"}.fa-get-pocket:before{content:\"\uF265\"}.fa-wikipedia-w:before{content:\"\uF266\"}.fa-safari:before{content:\"\uF267\"}.fa-chrome:before{content:\"\uF268\"}.fa-firefox:before{content:\"\uF269\"}.fa-opera:before{content:\"\uF26A\"}.fa-internet-explorer:before{content:\"\uF26B\"}.fa-television:before,.fa-tv:before{content:\"\uF26C\"}.fa-contao:before{content:\"\uF26D\"}.fa-500px:before{content:\"\uF26E\"}.fa-amazon:before{content:\"\uF270\"}.fa-calendar-plus-o:before{content:\"\uF271\"}.fa-calendar-minus-o:before{content:\"\uF272\"}.fa-calendar-times-o:before{content:\"\uF273\"}.fa-calendar-check-o:before{content:\"\uF274\"}.fa-industry:before{content:\"\uF275\"}.fa-map-pin:before{content:\"\uF276\"}.fa-map-signs:before{content:\"\uF277\"}.fa-map-o:before{content:\"\uF278\"}.fa-map:before{content:\"\uF279\"}.fa-commenting:before{content:\"\uF27A\"}.fa-commenting-o:before{content:\"\uF27B\"}.fa-houzz:before{content:\"\uF27C\"}.fa-vimeo:before{content:\"\uF27D\"}.fa-black-tie:before{content:\"\uF27E\"}.fa-fonticons:before{content:\"\uF280\"}.fa-reddit-alien:before{content:\"\uF281\"}.fa-edge:before{content:\"\uF282\"}.fa-credit-card-alt:before{content:\"\uF283\"}.fa-codiepie:before{content:\"\uF284\"}.fa-modx:before{content:\"\uF285\"}.fa-fort-awesome:before{content:\"\uF286\"}.fa-usb:before{content:\"\uF287\"}.fa-product-hunt:before{content:\"\uF288\"}.fa-mixcloud:before{content:\"\uF289\"}.fa-scribd:before{content:\"\uF28A\"}.fa-pause-circle:before{content:\"\uF28B\"}.fa-pause-circle-o:before{content:\"\uF28C\"}.fa-stop-circle:before{content:\"\uF28D\"}.fa-stop-circle-o:before{content:\"\uF28E\"}.fa-shopping-bag:before{content:\"\uF290\"}.fa-shopping-basket:before{content:\"\uF291\"}.fa-hashtag:before{content:\"\uF292\"}.fa-bluetooth:before{content:\"\uF293\"}.fa-bluetooth-b:before{content:\"\uF294\"}.fa-percent:before{content:\"\uF295\"}.fa-gitlab:before{content:\"\uF296\"}.fa-wpbeginner:before{content:\"\uF297\"}.fa-wpforms:before{content:\"\uF298\"}.fa-envira:before{content:\"\uF299\"}.fa-universal-access:before{content:\"\uF29A\"}.fa-wheelchair-alt:before{content:\"\uF29B\"}.fa-question-circle-o:before{content:\"\uF29C\"}.fa-blind:before{content:\"\uF29D\"}.fa-audio-description:before{content:\"\uF29E\"}.fa-volume-control-phone:before{content:\"\uF2A0\"}.fa-braille:before{content:\"\uF2A1\"}.fa-assistive-listening-systems:before{content:\"\uF2A2\"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:\"\uF2A3\"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:\"\uF2A4\"}.fa-glide:before{content:\"\uF2A5\"}.fa-glide-g:before{content:\"\uF2A6\"}.fa-sign-language:before,.fa-signing:before{content:\"\uF2A7\"}.fa-low-vision:before{content:\"\uF2A8\"}.fa-viadeo:before{content:\"\uF2A9\"}.fa-viadeo-square:before{content:\"\uF2AA\"}.fa-snapchat:before{content:\"\uF2AB\"}.fa-snapchat-ghost:before{content:\"\uF2AC\"}.fa-snapchat-square:before{content:\"\uF2AD\"}.fa-pied-piper:before{content:\"\uF2AE\"}.fa-first-order:before{content:\"\uF2B0\"}.fa-yoast:before{content:\"\uF2B1\"}.fa-themeisle:before{content:\"\uF2B2\"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:\"\uF2B3\"}.fa-fa:before,.fa-font-awesome:before{content:\"\uF2B4\"}.fa-handshake-o:before{content:\"\uF2B5\"}.fa-envelope-open:before{content:\"\uF2B6\"}.fa-envelope-open-o:before{content:\"\uF2B7\"}.fa-linode:before{content:\"\uF2B8\"}.fa-address-book:before{content:\"\uF2B9\"}.fa-address-book-o:before{content:\"\uF2BA\"}.fa-address-card:before,.fa-vcard:before{content:\"\uF2BB\"}.fa-address-card-o:before,.fa-vcard-o:before{content:\"\uF2BC\"}.fa-user-circle:before{content:\"\uF2BD\"}.fa-user-circle-o:before{content:\"\uF2BE\"}.fa-user-o:before{content:\"\uF2C0\"}.fa-id-badge:before{content:\"\uF2C1\"}.fa-drivers-license:before,.fa-id-card:before{content:\"\uF2C2\"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:\"\uF2C3\"}.fa-quora:before{content:\"\uF2C4\"}.fa-free-code-camp:before{content:\"\uF2C5\"}.fa-telegram:before{content:\"\uF2C6\"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:\"\uF2C7\"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:\"\uF2C8\"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:\"\uF2C9\"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:\"\uF2CA\"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:\"\uF2CB\"}.fa-shower:before{content:\"\uF2CC\"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:\"\uF2CD\"}.fa-podcast:before{content:\"\uF2CE\"}.fa-window-maximize:before{content:\"\uF2D0\"}.fa-window-minimize:before{content:\"\uF2D1\"}.fa-window-restore:before{content:\"\uF2D2\"}.fa-times-rectangle:before,.fa-window-close:before{content:\"\uF2D3\"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:\"\uF2D4\"}.fa-bandcamp:before{content:\"\uF2D5\"}.fa-grav:before{content:\"\uF2D6\"}.fa-etsy:before{content:\"\uF2D7\"}.fa-imdb:before{content:\"\uF2D8\"}.fa-ravelry:before{content:\"\uF2D9\"}.fa-eercast:before{content:\"\uF2DA\"}.fa-microchip:before{content:\"\uF2DB\"}.fa-snowflake-o:before{content:\"\uF2DC\"}.fa-superpowers:before{content:\"\uF2DD\"}.fa-wpexplorer:before{content:\"\uF2DE\"}.fa-meetup:before{content:\"\uF2E0\"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}a{cursor:pointer}.angular-editor-textarea{min-height:150px;overflow:auto;margin-top:5px;resize:vertical}.angular-editor-textarea:after{content:\"\";position:absolute;bottom:0;right:0;display:block;width:8px;height:8px;cursor:nwse-resize;background-color:hsla(0,0%,100%,.5)}.angular-editor-toolbar{font:100 14px/15px Roboto,Arial,sans-serif;background-color:#f5f5f5;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.angular-editor-toolbar .angular-editor-toolbar-set{display:none;margin-right:5px;vertical-align:baseline}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button{background-color:#fff;vertical-align:middle;border:1px solid #ddd;padding:.4rem;min-width:2rem;float:left}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button.focus,.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:focus{outline:0}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled>.color-label{pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled>.color-label.background,.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button:disabled>.color-label.foreground :after{background:#555}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button.active{background:#fff5b9}.angular-editor-toolbar .angular-editor-toolbar-set .angular-editor-button.active:hover{background-color:#fffa98}.angular-editor-toolbar .angular-editor-toolbar-set select{font-size:11px;width:90px;vertical-align:middle;background-color:transparent;border:.5px solid hsla(0,0%,100%,0);border-radius:5px;outline:none;padding:.4rem;cursor:pointer}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading{display:inline-block;width:90px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-heading optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading option{border:1px solid;background-color:#fff}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .default{font-size:16px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h1{font-size:24px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h2{font-size:20px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h3{font-size:16px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h4{font-size:15px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h5{font-size:14px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .h6{font-size:13px}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .div,.angular-editor-toolbar .angular-editor-toolbar-set .select-heading .pre{font-size:12px}}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-heading:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .select-font{display:inline-block;width:90px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-font optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font option{border:1px solid;background-color:#fff}}.angular-editor-toolbar .angular-editor-toolbar-set .select-font:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-font:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size{display:inline-block;width:50px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size option{border:1px solid;background-color:#fff}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size1{font-size:10px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size2{font-size:12px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size3{font-size:14px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size4{font-size:16px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size5{font-size:18px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size6{font-size:20px}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size .size7{font-size:22px}}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-font-size:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style{display:inline-block;width:90px}@supports not (-moz-appearance:none){.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style optgroup{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style option{border:1px solid;background-color:#fff}}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar .angular-editor-toolbar-set .select-custom-style:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar .angular-editor-toolbar-set .color-label{position:relative;cursor:pointer}.angular-editor-toolbar .angular-editor-toolbar-set .background{font-size:smaller;background:#1b1b1b;color:#fff;padding:3px}.angular-editor-toolbar .angular-editor-toolbar-set .foreground :after{position:absolute;content:\"\";left:-1px;top:auto;bottom:-3px;right:auto;width:15px;height:2px;z-index:0;background:#1b1b1b}.angular-editor-toolbar .angular-editor-toolbar-set:not([style*=\"display:none\"]):not([style*=\"display: none\"]),.select-button{display:inline-block}.select-button.disabled{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}"]
1352
- },] }
1353
- ];
1354
- AngularEditorToolbarComponent.ctorParameters = function () { return [
1355
- { type: core.Renderer2 },
1356
- { type: AngularEditorService },
1357
- { type: core.ElementRef },
1358
- { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
1359
- ]; };
1360
- AngularEditorToolbarComponent.propDecorators = {
1361
- id: [{ type: core.Input }],
1362
- uploadUrl: [{ type: core.Input }],
1363
- upload: [{ type: core.Input }],
1364
- showToolbar: [{ type: core.Input }],
1365
- fonts: [{ type: core.Input }],
1366
- customClasses: [{ type: core.Input }],
1367
- defaultFontName: [{ type: core.Input }],
1368
- defaultFontSize: [{ type: core.Input }],
1369
- hiddenButtons: [{ type: core.Input }],
1370
- execute: [{ type: core.Output }],
1371
- myInputFile: [{ type: core.ViewChild, args: ['fileInput', { static: true },] }]
1372
- };
1373
-
1374
- var AeSelectComponent = /** @class */ (function () {
1375
- function AeSelectComponent(elRef, r) {
1376
- this.elRef = elRef;
1377
- this.r = r;
1378
- this.options = [];
1379
- this.disabled = false;
1380
- this.optionId = 0;
1381
- this.opened = false;
1382
- this.hidden = 'inline-block';
1383
- // tslint:disable-next-line:no-output-native no-output-rename
1384
- this.changeEvent = new core.EventEmitter();
1385
- this.onChange = function () {
1386
- };
1387
- this.onTouched = function () {
1388
- };
1389
- }
1390
- Object.defineProperty(AeSelectComponent.prototype, "label", {
1391
- get: function () {
1392
- return this.selectedOption && this.selectedOption.hasOwnProperty('label') ? this.selectedOption.label : 'Select';
1393
- },
1394
- enumerable: false,
1395
- configurable: true
1396
- });
1397
- Object.defineProperty(AeSelectComponent.prototype, "value", {
1398
- get: function () {
1399
- return this.selectedOption.value;
1400
- },
1401
- enumerable: false,
1402
- configurable: true
1403
- });
1404
- AeSelectComponent.prototype.ngOnInit = function () {
1405
- this.selectedOption = this.options[0];
1406
- if (isDefined(this.isHidden) && this.isHidden) {
1407
- this.hide();
1408
- }
1409
- };
1410
- AeSelectComponent.prototype.hide = function () {
1411
- this.hidden = 'none';
1412
- };
1413
- AeSelectComponent.prototype.optionSelect = function (option, event) {
1414
- event.stopPropagation();
1415
- this.setValue(option.value);
1416
- this.onChange(this.selectedOption.value);
1417
- this.changeEvent.emit(this.selectedOption.value);
1418
- this.onTouched();
1419
- this.opened = false;
1420
- };
1421
- AeSelectComponent.prototype.toggleOpen = function (event) {
1422
- // event.stopPropagation();
1423
- if (this.disabled) {
1424
- return;
1425
- }
1426
- this.opened = !this.opened;
1427
- };
1428
- AeSelectComponent.prototype.onClick = function ($event) {
1429
- if (!this.elRef.nativeElement.contains($event.target)) {
1430
- this.close();
1431
- }
1432
- };
1433
- AeSelectComponent.prototype.close = function () {
1434
- this.opened = false;
1435
- };
1436
- Object.defineProperty(AeSelectComponent.prototype, "isOpen", {
1437
- get: function () {
1438
- return this.opened;
1439
- },
1440
- enumerable: false,
1441
- configurable: true
1442
- });
1443
- AeSelectComponent.prototype.writeValue = function (value) {
1444
- if (!value || typeof value !== 'string') {
1445
- return;
1446
- }
1447
- this.setValue(value);
1448
- };
1449
- AeSelectComponent.prototype.setValue = function (value) {
1450
- var index = 0;
1451
- var selectedEl = this.options.find(function (el, i) {
1452
- index = i;
1453
- return el.value === value;
1454
- });
1455
- if (selectedEl) {
1456
- this.selectedOption = selectedEl;
1457
- this.optionId = index;
1458
- }
1459
- };
1460
- AeSelectComponent.prototype.registerOnChange = function (fn) {
1461
- this.onChange = fn;
1462
- };
1463
- AeSelectComponent.prototype.registerOnTouched = function (fn) {
1464
- this.onTouched = fn;
1465
- };
1466
- AeSelectComponent.prototype.setDisabledState = function (isDisabled) {
1467
- this.labelButton.nativeElement.disabled = isDisabled;
1468
- var div = this.labelButton.nativeElement;
1469
- var action = isDisabled ? 'addClass' : 'removeClass';
1470
- this.r[action](div, 'disabled');
1471
- this.disabled = isDisabled;
1472
- };
1473
- AeSelectComponent.prototype.handleKeyDown = function ($event) {
1474
- if (!this.opened) {
1475
- return;
1476
- }
1477
- // console.log($event.key);
1478
- // if (KeyCode[$event.key]) {
1479
- switch ($event.key) {
1480
- case 'ArrowDown':
1481
- this._handleArrowDown($event);
1482
- break;
1483
- case 'ArrowUp':
1484
- this._handleArrowUp($event);
1485
- break;
1486
- case 'Space':
1487
- this._handleSpace($event);
1488
- break;
1489
- case 'Enter':
1490
- this._handleEnter($event);
1491
- break;
1492
- case 'Tab':
1493
- this._handleTab($event);
1494
- break;
1495
- case 'Escape':
1496
- this.close();
1497
- $event.preventDefault();
1498
- break;
1499
- case 'Backspace':
1500
- this._handleBackspace();
1501
- break;
1502
- }
1503
- // } else if ($event.key && $event.key.length === 1) {
1504
- // this._keyPress$.next($event.key.toLocaleLowerCase());
1505
- // }
1506
- };
1507
- AeSelectComponent.prototype._handleArrowDown = function ($event) {
1508
- if (this.optionId < this.options.length - 1) {
1509
- this.optionId++;
1510
- }
1511
- };
1512
- AeSelectComponent.prototype._handleArrowUp = function ($event) {
1513
- if (this.optionId >= 1) {
1514
- this.optionId--;
1515
- }
1516
- };
1517
- AeSelectComponent.prototype._handleSpace = function ($event) {
1518
- };
1519
- AeSelectComponent.prototype._handleEnter = function ($event) {
1520
- this.optionSelect(this.options[this.optionId], $event);
1521
- };
1522
- AeSelectComponent.prototype._handleTab = function ($event) {
1523
- };
1524
- AeSelectComponent.prototype._handleBackspace = function () {
1525
- };
1526
- return AeSelectComponent;
1527
- }());
1528
- AeSelectComponent.decorators = [
1529
- { type: core.Component, args: [{
1530
- selector: 'ae-select',
1531
- template: "<span class=\"ae-font ae-picker\" [ngClass]=\"{'ae-expanded':isOpen}\">\n <button [tabIndex]=\"-1\" #labelButton tabindex=\"0\" type=\"button\" role=\"button\" class=\"ae-picker-label\" (click)=\"toggleOpen($event);\">{{label}}\n <svg viewBox=\"0 0 18 18\">\n <!-- <use x=\"0\" y=\"0\" xlink:href=\"../assets/icons.svg#hom\"></use>-->\n <polygon class=\"ae-stroke\" points=\"7 11 9 13 11 11 7 11\"></polygon>\n <polygon class=\"ae-stroke\" points=\"7 7 9 5 11 7 7 7\"></polygon>\n </svg>\n </button>\n <span class=\"ae-picker-options\">\n <button tabindex=\"-1\" type=\"button\" role=\"button\" class=\"ae-picker-item\"\n *ngFor=\"let item of options; let i = index\"\n [ngClass]=\"{'selected': item.value === value, 'focused': i === optionId}\"\n (click)=\"optionSelect(item, $event)\">\n {{item.label}}\n </button>\n <span class=\"dropdown-item\" *ngIf=\"!options.length\">No items for select</span>\n </span>\n</span>\n",
1532
- encapsulation: core.ViewEncapsulation.None,
1533
- providers: [
1534
- {
1535
- provide: forms.NG_VALUE_ACCESSOR,
1536
- useExisting: core.forwardRef(function () { return AeSelectComponent; }),
1537
- multi: true,
1538
- }
1539
- ],
1540
- styles: [".ae-font.ae-picker{color:#444}.ae-font.ae-picker,.ae-font .ae-picker-label{display:inline-block;float:left;width:100%;position:relative;vertical-align:middle}.ae-font .ae-picker-label{cursor:pointer;height:100%;padding-left:8px;padding-right:10px;line-height:26px;font-size:85%;text-align:left;background-color:#fff;min-width:2rem;border:1px solid #ddd;text-overflow:clip;overflow:hidden;white-space:nowrap}.ae-font .ae-picker-label:before{content:\"\";position:absolute;right:0;top:0;width:20px;height:100%;background:linear-gradient(90deg,#fff,#fff)}.ae-font .ae-picker-label:focus{outline:none}.ae-font .ae-picker-label:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.ae-font .ae-picker-label:hover:before{background:linear-gradient(90deg,#f5f5f5 100%,#fff 0)}.ae-font .ae-picker-label:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.ae-font .ae-picker-label:disabled:before{background:linear-gradient(90deg,#f5f5f5 100%,#fff 0)}.ae-font .ae-picker-label svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ae-font .ae-picker-label svg:not(:root){overflow:hidden}.ae-font .ae-picker-label svg .ae-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ae-font .ae-picker-options{background-color:#fff;display:none;min-width:100%;position:absolute;white-space:nowrap;z-index:3;border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ae-font .ae-picker-options .ae-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px;padding-left:5px;z-index:3;text-align:left;background-color:transparent;min-width:2rem;width:100%;border:0 solid #ddd}.ae-font .ae-picker-options .ae-picker-item.selected{color:#06c;background-color:#fff4c2}.ae-font .ae-picker-options .ae-picker-item.focused,.ae-font .ae-picker-options .ae-picker-item:hover{background-color:#fffa98}.ae-font.ae-expanded{display:block;margin-top:-1px;z-index:1}.ae-font.ae-expanded .ae-picker-label,.ae-font.ae-expanded .ae-picker-label svg{color:#ccc;z-index:2}.ae-font.ae-expanded .ae-picker-label svg .ae-stroke{stroke:#ccc}.ae-font.ae-expanded .ae-picker-options{display:block;margin-top:-1px;top:100%;z-index:3;border-color:#ccc}"]
1541
- },] }
1542
- ];
1543
- AeSelectComponent.ctorParameters = function () { return [
1544
- { type: core.ElementRef },
1545
- { type: core.Renderer2 }
1546
- ]; };
1547
- AeSelectComponent.propDecorators = {
1548
- options: [{ type: core.Input }],
1549
- isHidden: [{ type: core.Input, args: ['hidden',] }],
1550
- hidden: [{ type: core.HostBinding, args: ['style.display',] }],
1551
- changeEvent: [{ type: core.Output, args: ['change',] }],
1552
- labelButton: [{ type: core.ViewChild, args: ['labelButton', { static: true },] }],
1553
- onClick: [{ type: core.HostListener, args: ['document:click', ['$event'],] }],
1554
- handleKeyDown: [{ type: core.HostListener, args: ['keydown', ['$event'],] }]
1555
- };
1556
-
1557
- var AngularEditorModule = /** @class */ (function () {
1558
- function AngularEditorModule() {
1559
- }
1560
- return AngularEditorModule;
1561
- }());
1562
- AngularEditorModule.decorators = [
1563
- { type: core.NgModule, args: [{
1564
- imports: [
1565
- common.CommonModule, forms.FormsModule, forms.ReactiveFormsModule
1566
- ],
1567
- declarations: [AngularEditorComponent, AngularEditorToolbarComponent, AeSelectComponent],
1568
- exports: [AngularEditorComponent, AngularEditorToolbarComponent]
1569
- },] }
1570
- ];
1571
-
1572
- /*
1573
- * Public API Surface of angular-editor
1574
- */
1575
-
1576
- /**
1577
- * Generated bundle index. Do not edit.
1578
- */
1579
-
1580
- exports.AngularEditorComponent = AngularEditorComponent;
1581
- exports.AngularEditorModule = AngularEditorModule;
1582
- exports.AngularEditorService = AngularEditorService;
1583
- exports.AngularEditorToolbarComponent = AngularEditorToolbarComponent;
1584
- exports.ɵa = AeSelectComponent;
1585
-
1586
- Object.defineProperty(exports, '__esModule', { value: true });
1587
-
1588
- })));
1589
- //# sourceMappingURL=kolkov-angular-editor.umd.js.map