@pobuca/email-builder 1.5.1 → 1.6.1

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/drag-drop'), require('@angular/common/http'), require('@angular/material/snack-bar'), require('@angular/material/dialog'), require('@angular/material/bottom-sheet'), require('@angular/platform-browser'), require('@angular/flex-layout'), require('@angular/material/button'), require('@angular/material/button-toggle'), require('@angular/material/divider'), require('@angular/material/expansion'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/select'), require('@angular/material/sidenav'), require('@angular/material/slide-toggle'), require('@angular/material/slider'), require('@angular/material/tabs'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('angular-resizable-element'), require('@angular/forms'), require('@angular/common'), require('@angular/cdk/scrolling'), require('quill'), require('ngx-quill'), require('ngx-color/chrome'), require('@angular/cdk/portal'), require('@angular/localize/init')) :
3
- typeof define === 'function' && define.amd ? define('@pobuca/email-builder', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/cdk/drag-drop', '@angular/common/http', '@angular/material/snack-bar', '@angular/material/dialog', '@angular/material/bottom-sheet', '@angular/platform-browser', '@angular/flex-layout', '@angular/material/button', '@angular/material/button-toggle', '@angular/material/divider', '@angular/material/expansion', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/list', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/select', '@angular/material/sidenav', '@angular/material/slide-toggle', '@angular/material/slider', '@angular/material/tabs', '@angular/material/toolbar', '@angular/material/tooltip', 'angular-resizable-element', '@angular/forms', '@angular/common', '@angular/cdk/scrolling', 'quill', 'ngx-quill', 'ngx-color/chrome', '@angular/cdk/portal', '@angular/localize/init'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.pobuca = global.pobuca || {}, global.pobuca["email-builder"] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.cdk.dragDrop, global.ng.common.http, global.ng.material.snackBar, global.ng.material.dialog, global.ng.material.bottomSheet, global.ng.platformBrowser, global.ng.flexLayout, global.ng.material.button, global.ng.material.buttonToggle, global.ng.material.divider, global.ng.material.expansion, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.list, global.ng.material.menu, global.ng.material.progressBar, global.ng.material.select, global.ng.material.sidenav, global.ng.material.slideToggle, global.ng.material.slider, global.ng.material.tabs, global.ng.material.toolbar, global.ng.material.tooltip, global.angularResizableElement, global.ng.forms, global.ng.common, global.ng.cdk.scrolling, null, global.ng.quill, global.ng.color.chrome, global.ng.cdk.portal));
5
- })(this, (function (exports, i0, rxjs, operators, dragDrop, i1, snackBar, dialog, bottomSheet, platformBrowser, flexLayout, button, buttonToggle, divider, expansion, formField, icon, input, list, menu, progressBar, select, sidenav, slideToggle, slider, tabs, toolbar, tooltip, angularResizableElement, forms, common, scrolling, quill, ngxQuill, chrome, portal) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/drag-drop'), require('@angular/common/http'), require('@angular/material/snack-bar'), require('@angular/material/dialog'), require('@angular/material/bottom-sheet'), require('@angular/platform-browser'), require('@angular/flex-layout'), require('@angular/material/button'), require('@angular/material/button-toggle'), require('@angular/material/divider'), require('@angular/material/expansion'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/select'), require('@angular/material/sidenav'), require('@angular/material/slide-toggle'), require('@angular/material/slider'), require('@angular/material/tabs'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('angular-resizable-element'), require('@angular/forms'), require('@angular/common'), require('@angular/cdk/scrolling'), require('quill'), require('ngx-quill'), require('ngx-color/chrome'), require('@angular/cdk/portal'), require('@angular/cdk/clipboard'), require('@angular/localize/init')) :
3
+ typeof define === 'function' && define.amd ? define('@pobuca/email-builder', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/cdk/drag-drop', '@angular/common/http', '@angular/material/snack-bar', '@angular/material/dialog', '@angular/material/bottom-sheet', '@angular/platform-browser', '@angular/flex-layout', '@angular/material/button', '@angular/material/button-toggle', '@angular/material/divider', '@angular/material/expansion', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/list', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/select', '@angular/material/sidenav', '@angular/material/slide-toggle', '@angular/material/slider', '@angular/material/tabs', '@angular/material/toolbar', '@angular/material/tooltip', 'angular-resizable-element', '@angular/forms', '@angular/common', '@angular/cdk/scrolling', 'quill', 'ngx-quill', 'ngx-color/chrome', '@angular/cdk/portal', '@angular/cdk/clipboard', '@angular/localize/init'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.pobuca = global.pobuca || {}, global.pobuca["email-builder"] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.cdk.dragDrop, global.ng.common.http, global.ng.material.snackBar, global.ng.material.dialog, global.ng.material.bottomSheet, global.ng.platformBrowser, global.ng.flexLayout, global.ng.material.button, global.ng.material.buttonToggle, global.ng.material.divider, global.ng.material.expansion, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.list, global.ng.material.menu, global.ng.material.progressBar, global.ng.material.select, global.ng.material.sidenav, global.ng.material.slideToggle, global.ng.material.slider, global.ng.material.tabs, global.ng.material.toolbar, global.ng.material.tooltip, global.angularResizableElement, global.ng.forms, global.ng.common, global.ng.cdk.scrolling, null, global.ng.quill, global.ng.color.chrome, global.ng.cdk.portal, global.ng.cdk.clipboard));
5
+ })(this, (function (exports, i0, rxjs, operators, dragDrop, i1, snackBar, dialog, bottomSheet, platformBrowser, flexLayout, button, buttonToggle, divider, expansion, formField, icon, input, list, menu, progressBar, select, sidenav, slideToggle, slider, tabs, toolbar, tooltip, angularResizableElement, forms, common, scrolling, quill, ngxQuill, chrome, portal, clipboard) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -1237,6 +1237,51 @@
1237
1237
  providedIn: 'root',
1238
1238
  factory: function () { return PB_DEFAULT_CONFIG; }
1239
1239
  });
1240
+ /** Default personalization-field picker terminology and visible features. */
1241
+ var PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG = Object.freeze({
1242
+ labels: Object.freeze({
1243
+ trigger: 'Tags',
1244
+ title: 'Personalization tags',
1245
+ subtitle: 'Choose a field and customize the token before inserting it.',
1246
+ search: 'Search tags',
1247
+ defaultSection: 'Tags',
1248
+ preview: 'Token preview',
1249
+ copy: 'Copy',
1250
+ copied: 'Copied',
1251
+ length: 'Maximum length',
1252
+ optional: 'Optional',
1253
+ noLengthLimit: 'No limit',
1254
+ insert: 'Insert tag',
1255
+ cancel: 'Cancel',
1256
+ close: 'Close',
1257
+ clearSearch: 'Clear search',
1258
+ empty: 'No tags match your search.'
1259
+ }),
1260
+ display: Object.freeze({
1261
+ sections: true,
1262
+ descriptions: true,
1263
+ rawValues: true,
1264
+ preview: true,
1265
+ copy: true,
1266
+ length: true
1267
+ })
1268
+ });
1269
+ /** Merge a partial picker configuration with the library defaults. */
1270
+ function resolveMergeFieldPickerConfig(config) {
1271
+ if (config === void 0) { config = {}; }
1272
+ return {
1273
+ labels: Object.assign(Object.assign({}, PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG.labels), (config.labels || {})),
1274
+ display: Object.assign(Object.assign({}, PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG.display), (config.display || {}))
1275
+ };
1276
+ }
1277
+ /**
1278
+ * Personalization-field picker configuration token.
1279
+ * Provide a partial {@link IMergeFieldPickerConfig}; missing values use the defaults.
1280
+ */
1281
+ var PB_MERGE_FIELD_PICKER_CONFIG = new i0.InjectionToken('PB Merge Field Picker Configuration', {
1282
+ providedIn: 'root',
1283
+ factory: function () { return PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG; }
1284
+ });
1240
1285
  /**
1241
1286
  * The default Storage used by builder. It can be either `localStorage` or `sessionStorage`.
1242
1287
  */
@@ -4615,14 +4660,169 @@
4615
4660
  return AbstractEntityBlock;
4616
4661
  }());
4617
4662
 
4663
+ var MergeFieldPickerDialogComponent = /** @class */ (function () {
4664
+ function MergeFieldPickerDialogComponent(matDialogRef, changeDetectorRef, elementRef, document, clipboard, mergeFields, pickerConfig) {
4665
+ var _this = this;
4666
+ this.matDialogRef = matDialogRef;
4667
+ this.changeDetectorRef = changeDetectorRef;
4668
+ this.elementRef = elementRef;
4669
+ this.document = document;
4670
+ this.clipboard = clipboard;
4671
+ this.query = '';
4672
+ this.sections = [];
4673
+ this.length = '';
4674
+ this.previewToken = '';
4675
+ this.supportsLength = false;
4676
+ this.copied = false;
4677
+ this.selectedTokenBase = '';
4678
+ this.closing = false;
4679
+ this.outsidePointerDown = function (event) { return _this.closeOnOutsidePointerDown(event); };
4680
+ this.config = resolveMergeFieldPickerConfig(pickerConfig);
4681
+ this.fields = mergeFields.map(function (field) { return _this.normalizeField(field); });
4682
+ this.updateSections();
4683
+ }
4684
+ MergeFieldPickerDialogComponent.prototype.updateQuery = function (query) {
4685
+ this.query = query;
4686
+ this.updateSections();
4687
+ };
4688
+ MergeFieldPickerDialogComponent.prototype.onSearchInput = function (event) {
4689
+ this.updateQuery(event.target.value);
4690
+ this.changeDetectorRef.detectChanges();
4691
+ };
4692
+ MergeFieldPickerDialogComponent.prototype.selectField = function (field) {
4693
+ var tokenParts = field.value.match(/^(\{![^{}:]+:[^{}:]+)(?::([1-9]\d*))?\}$/);
4694
+ this.selectedField = field;
4695
+ this.supportsLength = this.config.display.length && Boolean(tokenParts);
4696
+ this.selectedTokenBase = this.supportsLength && tokenParts ? tokenParts[1] : field.value;
4697
+ this.length = (this.supportsLength && tokenParts && tokenParts[2]) || '';
4698
+ this.copied = false;
4699
+ this.updatePreviewToken();
4700
+ };
4701
+ MergeFieldPickerDialogComponent.prototype.selectSection = function (section) {
4702
+ this.activeSection = section;
4703
+ };
4704
+ MergeFieldPickerDialogComponent.prototype.onLengthInput = function (event) {
4705
+ var input = event.target;
4706
+ var length = input.value.replace(/\D/g, '').replace(/^0+/, '');
4707
+ if (input.value !== length) {
4708
+ input.value = length;
4709
+ }
4710
+ this.length = length;
4711
+ this.copied = false;
4712
+ this.updatePreviewToken();
4713
+ this.changeDetectorRef.detectChanges();
4714
+ };
4715
+ MergeFieldPickerDialogComponent.prototype.copyPreviewToken = function () {
4716
+ if (!this.previewToken) {
4717
+ return;
4718
+ }
4719
+ this.copied = this.clipboard.copy(this.previewToken);
4720
+ this.changeDetectorRef.detectChanges();
4721
+ };
4722
+ MergeFieldPickerDialogComponent.prototype.insertSelectedField = function () {
4723
+ if (!this.closing && this.previewToken) {
4724
+ this.closing = true;
4725
+ this.matDialogRef.close(this.previewToken);
4726
+ }
4727
+ };
4728
+ MergeFieldPickerDialogComponent.prototype.closeOnOutsidePointerDown = function (event) {
4729
+ if (!this.closing && !this.elementRef.nativeElement.contains(event.target)) {
4730
+ this.closing = true;
4731
+ this.matDialogRef.close();
4732
+ }
4733
+ };
4734
+ MergeFieldPickerDialogComponent.prototype.ngOnInit = function () {
4735
+ this.document.addEventListener('pointerdown', this.outsidePointerDown, true);
4736
+ };
4737
+ MergeFieldPickerDialogComponent.prototype.ngOnDestroy = function () {
4738
+ this.document.removeEventListener('pointerdown', this.outsidePointerDown, true);
4739
+ };
4740
+ MergeFieldPickerDialogComponent.prototype.trackSection = function (_, section) {
4741
+ return section.label;
4742
+ };
4743
+ MergeFieldPickerDialogComponent.prototype.trackField = function (_, field) {
4744
+ return field.value;
4745
+ };
4746
+ MergeFieldPickerDialogComponent.prototype.normalizeField = function (field) {
4747
+ var value = typeof field === 'string' ? field : field.value;
4748
+ var parsedField = this.parseToken(value);
4749
+ if (typeof field === 'string') {
4750
+ return parsedField;
4751
+ }
4752
+ return Object.assign(Object.assign({}, field), { label: field.label || parsedField.label, section: field.section || parsedField.section });
4753
+ };
4754
+ MergeFieldPickerDialogComponent.prototype.parseToken = function (value) {
4755
+ var match = value.match(/^\{!([^{}:]+):([^{}:]+)/);
4756
+ return {
4757
+ value: value,
4758
+ label: match ? match[2] : value,
4759
+ section: match ? match[1] : this.config.labels.defaultSection
4760
+ };
4761
+ };
4762
+ MergeFieldPickerDialogComponent.prototype.updateSections = function () {
4763
+ var _this = this;
4764
+ var query = this.query.trim().toLocaleLowerCase();
4765
+ var filteredFields = query
4766
+ ? this.fields.filter(function (field) { return _this.matchesQuery(field, query); })
4767
+ : this.fields;
4768
+ var sections = filteredFields.reduce(function (result, field) {
4769
+ var section = _this.config.display.sections
4770
+ ? field.section || _this.config.labels.defaultSection
4771
+ : _this.config.labels.defaultSection;
4772
+ if (!result.has(section)) {
4773
+ result.set(section, []);
4774
+ }
4775
+ result.get(section).push(field);
4776
+ return result;
4777
+ }, new Map());
4778
+ var activeSectionLabel = this.activeSection && this.activeSection.label;
4779
+ this.sections = Array.from(sections.entries()).map(function (_a) {
4780
+ var _b = __read(_a, 2), label = _b[0], fields = _b[1];
4781
+ return ({ label: label, fields: fields });
4782
+ });
4783
+ this.activeSection = this.sections.find(function (section) { return section.label === activeSectionLabel; })
4784
+ || this.sections[0];
4785
+ };
4786
+ MergeFieldPickerDialogComponent.prototype.matchesQuery = function (field, query) {
4787
+ return [field.label, field.value, field.section, field.description]
4788
+ .filter(function (value) { return Boolean(value); })
4789
+ .some(function (value) { return value.toLocaleLowerCase().includes(query); });
4790
+ };
4791
+ MergeFieldPickerDialogComponent.prototype.updatePreviewToken = function () {
4792
+ if (!this.supportsLength) {
4793
+ this.previewToken = this.selectedTokenBase;
4794
+ return;
4795
+ }
4796
+ this.previewToken = "" + this.selectedTokenBase + (this.length ? ":" + this.length : '') + "}";
4797
+ };
4798
+ return MergeFieldPickerDialogComponent;
4799
+ }());
4800
+ MergeFieldPickerDialogComponent.decorators = [
4801
+ { type: i0.Component, args: [{
4802
+ selector: 'pb-merge-field-picker-dialog',
4803
+ template: "<div mat-dialog-title class=\"merge-field-dialog-header\">\n <div>\n <h2>{{ config.labels.title }}</h2>\n <p *ngIf=\"config.labels.subtitle\">{{ config.labels.subtitle }}</p>\n </div>\n <button\n type=\"button\"\n mat-icon-button\n mat-dialog-close\n [attr.aria-label]=\"config.labels.close\"\n [matTooltip]=\"config.labels.close\">\n <mat-icon>close</mat-icon>\n <span class=\"merge-field-visually-hidden\">{{ config.labels.close }}</span>\n </button>\n</div>\n\n<mat-dialog-content>\n <mat-form-field appearance=\"outline\" class=\"merge-field-search\">\n <mat-label>{{ config.labels.search }}</mat-label>\n <mat-icon matPrefix>search</mat-icon>\n <input\n matInput\n cdkFocusInitial\n type=\"search\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onSearchInput($event)\" />\n <button\n *ngIf=\"query\"\n type=\"button\"\n mat-icon-button\n matSuffix\n [attr.aria-label]=\"config.labels.clearSearch\"\n [matTooltip]=\"config.labels.clearSearch\"\n (click)=\"updateQuery('')\">\n <mat-icon>close</mat-icon>\n <span class=\"merge-field-visually-hidden\">{{ config.labels.clearSearch }}</span>\n </button>\n </mat-form-field>\n\n <div\n *ngIf=\"sections.length; else noResults\"\n class=\"merge-field-browser\"\n [class.merge-field-browser-with-groups]=\"config.display.sections\">\n <nav\n *ngIf=\"config.display.sections\"\n class=\"merge-field-groups\"\n [attr.aria-label]=\"config.labels.title\">\n <button\n *ngFor=\"let section of sections; trackBy: trackSection\"\n type=\"button\"\n mat-button\n class=\"merge-field-group\"\n [class.merge-field-group-active]=\"activeSection === section\"\n [attr.aria-current]=\"activeSection === section ? 'true' : null\"\n (click)=\"selectSection(section)\">\n <span>{{ section.label }}</span>\n <small>{{ section.fields.length }}</small>\n </button>\n </nav>\n\n <section *ngIf=\"activeSection\" class=\"merge-field-section\">\n <header *ngIf=\"config.display.sections\">\n <h3>{{ activeSection.label }}</h3>\n <span>{{ activeSection.fields.length }}</span>\n </header>\n <button\n *ngFor=\"let field of activeSection.fields; trackBy: trackField\"\n type=\"button\"\n mat-button\n class=\"merge-field-option\"\n [class.merge-field-option-selected]=\"selectedField && selectedField.value === field.value\"\n [class.merge-field-option-without-value]=\"!config.display.rawValues\"\n [attr.aria-pressed]=\"selectedField && selectedField.value === field.value\"\n (click)=\"selectField(field)\">\n <span class=\"merge-field-summary\">\n <span class=\"merge-field-label\">{{ field.label }}</span>\n <span *ngIf=\"config.display.descriptions && field.description\" class=\"merge-field-description\">\n \u2014 {{ field.description }}\n </span>\n </span>\n <code *ngIf=\"config.display.rawValues\">{{ field.value }}</code>\n <span class=\"merge-field-selection\" aria-hidden=\"true\">\n <mat-icon>check</mat-icon>\n </span>\n </button>\n </section>\n </div>\n</mat-dialog-content>\n\n<div *ngIf=\"selectedField && config.display.preview\" class=\"merge-field-preview\">\n <div class=\"merge-field-preview-heading\">\n <span class=\"merge-field-preview-icon\" aria-hidden=\"true\"><mat-icon>code</mat-icon></span>\n <div>\n <span>{{ config.labels.preview }}</span>\n <strong>{{ selectedField.label }}</strong>\n </div>\n </div>\n\n <div class=\"merge-field-preview-value\">\n <div>\n <code>{{ previewToken }}</code>\n </div>\n <button\n *ngIf=\"config.display.copy\"\n type=\"button\"\n mat-button\n [attr.aria-label]=\"copied ? config.labels.copied : config.labels.copy\"\n [matTooltip]=\"copied ? config.labels.copied : config.labels.copy\"\n (click)=\"copyPreviewToken()\">\n <mat-icon>{{ copied ? 'done' : 'content_copy' }}</mat-icon>\n <span>{{ copied ? config.labels.copied : config.labels.copy }}</span>\n </button>\n </div>\n\n <label *ngIf=\"supportsLength\" class=\"merge-field-length\">\n <span>\n <strong>{{ config.labels.length }}</strong>\n <small *ngIf=\"config.labels.optional\">{{ config.labels.optional }}</small>\n </span>\n <input\n type=\"number\"\n min=\"1\"\n step=\"1\"\n inputmode=\"numeric\"\n [placeholder]=\"config.labels.noLengthLimit\"\n [value]=\"length\"\n (input)=\"onLengthInput($event)\" />\n </label>\n</div>\n\n<mat-dialog-actions align=\"end\" class=\"merge-field-actions\">\n <button type=\"button\" mat-button mat-dialog-close>{{ config.labels.cancel }}</button>\n <button\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n [disabled]=\"!selectedField\"\n (pointerdown)=\"insertSelectedField()\"\n (click)=\"insertSelectedField()\">\n {{ config.labels.insert }}\n </button>\n</mat-dialog-actions>\n\n<ng-template #noResults>\n <p class=\"merge-field-empty\">{{ config.labels.empty }}</p>\n</ng-template>\n",
4804
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
4805
+ styles: [":host{display:flex;min-height:0;flex-direction:column;height:100%;color:#172033}.merge-field-visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}.merge-field-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;margin:0;padding:1.5rem 1.5rem 1rem}.merge-field-dialog-header h2{margin:0;font-size:1.25rem;font-weight:650;letter-spacing:-.025em}.merge-field-dialog-header p{margin:.25rem 0 0;color:#667085;font-size:.8125rem;line-height:1.4}.merge-field-dialog-header button{margin:-.5rem -.5rem 0 1rem;color:#667085}mat-dialog-content{display:flex;min-height:0;margin:0;padding:0 1.5rem;flex:1 1 auto;flex-direction:column;overflow:hidden}.merge-field-search{width:100%;margin-bottom:.25rem}.merge-field-search mat-icon{color:#98a2b3}.merge-field-search ::ng-deep .mat-form-field-outline-start{border-radius:12px 0 0 12px}.merge-field-search ::ng-deep .mat-form-field-outline-end{border-radius:0 12px 12px 0}.merge-field-browser{display:flex;min-height:0;padding-bottom:.25rem;flex:1 1 auto;overflow:hidden}.merge-field-browser-with-groups{border:1px solid #e4e7ec;border-radius:12px;background:#fff}.merge-field-groups{display:flex;width:190px;box-sizing:border-box;padding:.5rem;border-right:1px solid #e4e7ec;background:#f9fafb;flex:0 0 190px;flex-direction:column;gap:.25rem;overflow-y:auto}.merge-field-group{min-height:40px;padding:0 .625rem;border-radius:8px;color:#475467;line-height:1.2;text-align:left}.merge-field-group ::ng-deep .mat-button-wrapper{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0;gap:.5rem}.merge-field-group span{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.merge-field-group small{min-width:1.625rem;box-sizing:border-box;padding:.1875rem .375rem;border-radius:999px;background:#eaecf0;color:#667085;font-size:.6875rem;line-height:1;text-align:center}.merge-field-group:hover{background:#f2f4f7}.merge-field-group-active{background:#eef2ff;color:#3730a3}.merge-field-group-active small{background:#dfe3ff;color:#4338ca}.merge-field-group-active:hover{background:#e0e7ff}.merge-field-section{min-width:0;padding:.75rem;flex:1 1 auto;overflow-y:auto}.merge-field-section header{display:flex;align-items:center;justify-content:space-between;padding:.125rem .75rem .5rem;color:#667085}.merge-field-section header h3{margin:0;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.merge-field-section header span{font-size:.6875rem;font-weight:600}.merge-field-option{display:block;width:100%;height:auto;min-height:42px;padding:.3125rem .75rem;border:1px solid transparent;border-radius:9px;line-height:1.25;text-align:left;white-space:nowrap;transition:border-color .12s ease,background-color .12s ease,transform .12s ease}.merge-field-option ::ng-deep .mat-button-wrapper{display:grid;align-items:center;width:100%;gap:.625rem;grid-template-columns:minmax(0,1fr) minmax(150px,40%) 20px}.merge-field-option code{overflow:hidden;padding:.1875rem .4375rem;border-radius:5px;background:#f2f4f7;color:#475467;font-size:.71875rem;text-overflow:ellipsis;white-space:nowrap}.merge-field-option:hover{border-color:#e4e7ec;background:#f9fafb}.merge-field-option+.merge-field-option{margin-top:.25rem}.merge-field-option-selected{border-color:#c7d2fe;background:#eef2ff}.merge-field-option-selected code{background:hsla(0,0%,100%,.7);color:#3730a3}.merge-field-option-selected .merge-field-selection{border-color:#4f46e5;background:#4f46e5;color:#fff;opacity:1;transform:scale(1)}.merge-field-option-selected:hover{border-color:#a5b4fc;background:#e0e7ff}.merge-field-option-without-value ::ng-deep .mat-button-wrapper{grid-template-columns:minmax(0,1fr) 20px}.merge-field-selection{display:grid;width:18px;height:18px;border:1px solid transparent;border-radius:50%;opacity:0;place-items:center;transform:scale(.75);transition:opacity .12s ease,transform .12s ease}.merge-field-selection mat-icon{width:13px;height:13px;font-size:13px;line-height:13px}.merge-field-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merge-field-label{color:#1d2939;font-weight:600}.merge-field-description,.merge-field-empty{color:#667085}.merge-field-description{font-size:.75rem;font-weight:400}.merge-field-empty{padding:1.5rem 0;text-align:center}.merge-field-preview{display:grid;gap:.75rem;margin:1rem 1.5rem 0;padding:1rem;border:1px solid #dfe3f8;border-radius:12px;background:linear-gradient(135deg,#f8faff,#f4f3ff)}.merge-field-preview-heading{display:flex;align-items:center;gap:.625rem}.merge-field-preview-heading>div{display:flex;min-width:0;flex-direction:column}.merge-field-preview-heading span:not(.merge-field-preview-icon){color:#667085;font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.merge-field-preview-heading strong{overflow:hidden;color:#1d2939;font-size:.8125rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.merge-field-preview-icon{display:grid;width:32px;height:32px;border-radius:9px;background:#e0e7ff;color:#4338ca;place-items:center}.merge-field-preview-icon mat-icon{width:18px;height:18px;font-size:18px;line-height:18px}.merge-field-preview-value{display:grid;overflow:hidden;min-height:44px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;grid-template-columns:minmax(0,1fr) auto}.merge-field-preview-value>div{display:flex;align-items:center;min-width:0;padding:0 .75rem}.merge-field-preview-value code{overflow:hidden;color:#27324a;font-size:.8125rem;text-overflow:ellipsis;white-space:nowrap}.merge-field-preview-value button{height:100%;min-width:76px;border-left:1px solid #e4e7ec;border-radius:0;color:#4338ca}.merge-field-preview-value button mat-icon{margin-right:.25rem;font-size:18px}.merge-field-length{display:flex;align-items:center;justify-content:space-between;gap:1rem}.merge-field-length>span{display:flex;align-items:baseline;gap:.5rem}.merge-field-length strong{color:#344054;font-size:.75rem;font-weight:600}.merge-field-length small{color:#98a2b3;font-size:.6875rem}.merge-field-length input{width:104px;height:36px;box-sizing:border-box;padding:0 .625rem;border:1px solid #d0d5dd;border-radius:8px;outline:none;background:#fff;color:#1d2939;font:inherit;transition:border-color .12s ease,box-shadow .12s ease}.merge-field-length input:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.14)}.merge-field-length input::-moz-placeholder{color:#98a2b3}.merge-field-length input::placeholder{color:#98a2b3}.merge-field-actions{min-height:auto;margin:0;padding:1rem 1.5rem 1.5rem;gap:.5rem}.merge-field-actions button{min-height:40px;border-radius:8px;font-weight:600}.merge-field-actions .mat-flat-button{padding:0 1.125rem}@media (max-width:520px){.merge-field-actions,.merge-field-dialog-header{padding-right:1rem;padding-left:1rem}mat-dialog-content{padding:0 1rem}.merge-field-browser{flex-direction:column}.merge-field-groups{width:100%;padding:.375rem;border-right:0;border-bottom:1px solid #e4e7ec;flex:0 0 auto;flex-direction:row;overflow-x:auto;overflow-y:hidden}.merge-field-group{min-width:-moz-max-content;min-width:max-content}.merge-field-group small{margin-left:.5rem}.merge-field-section{padding:.625rem}.merge-field-option ::ng-deep .mat-button-wrapper{grid-template-columns:minmax(0,1fr) 20px}.merge-field-option code{display:none}.merge-field-preview{margin-right:1rem;margin-left:1rem}}"]
4806
+ },] }
4807
+ ];
4808
+ MergeFieldPickerDialogComponent.ctorParameters = function () { return [
4809
+ { type: dialog.MatDialogRef },
4810
+ { type: i0.ChangeDetectorRef },
4811
+ { type: i0.ElementRef },
4812
+ { type: Document, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] },
4813
+ { type: clipboard.Clipboard },
4814
+ { type: Array, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
4815
+ { type: undefined, decorators: [{ type: i0.Inject, args: [PB_MERGE_FIELD_PICKER_CONFIG,] }] }
4816
+ ]; };
4817
+
4618
4818
  var TextElementComponent = /** @class */ (function (_super) {
4619
4819
  __extends(TextElementComponent, _super);
4620
- function TextElementComponent(userRestApi, emailObject, internalService) {
4820
+ function TextElementComponent(userRestApi, emailObject, internalService, matDialog, mergeFieldPickerConfig) {
4621
4821
  var _this = _super.call(this) || this;
4622
4822
  _this.userRestApi = userRestApi;
4623
4823
  _this.emailObject = emailObject;
4624
4824
  _this.internalService = internalService;
4625
- // @Input() block: TextBlock;
4825
+ _this.matDialog = matDialog;
4626
4826
  _this.setAsReadOnly$ = _this.internalService.currentEditingBlock$.pipe(operators.map(function (editingBlock) { return editingBlock !== _this.block; }));
4627
4827
  _this.staticQuillConfig = {
4628
4828
  toolbar: {
@@ -4635,23 +4835,20 @@
4635
4835
  ['clean']
4636
4836
  ],
4637
4837
  handlers: {
4638
- placeholder: function (selector) {
4639
- var range = this.quill.getSelection();
4640
- var format = this.quill.getFormat();
4641
- var text = this.quill.getText(range.index, range.length);
4642
- this.quill.deleteText(range.index, text.length);
4643
- this.quill.insertText(range.index, selector, format);
4644
- this.quill.setSelection(range.index, selector.length);
4645
- }
4838
+ mergefield: function () { return _this.openMergeFieldPicker(); }
4646
4839
  }
4647
4840
  }
4648
4841
  };
4649
- _this.quillInit$ = _this.userRestApi.getAllUserMergeFields$.pipe(operators.map(function (placeholder) {
4650
- // @ts-ignore
4651
- _this.staticQuillConfig.toolbar.container.splice(-1, 0, [{ placeholder: placeholder }]);
4842
+ _this.quillInit$ = _this.userRestApi.getAllUserMergeFields$.pipe(operators.map(function (mergeFields) {
4843
+ _this.mergeFields = mergeFields;
4844
+ if (mergeFields.length) {
4845
+ _this.staticQuillConfig.toolbar.container.splice(-1, 0, ['mergefield']);
4846
+ }
4652
4847
  }), operators.mapTo(true), operators.take(1));
4653
4848
  _this.textChanged$ = new rxjs.Subject();
4654
4849
  _this.componentDestroyed$ = new rxjs.Subject();
4850
+ _this.mergeFields = [];
4851
+ _this.mergeFieldPickerConfig = resolveMergeFieldPickerConfig(mergeFieldPickerConfig);
4655
4852
  return _this;
4656
4853
  }
4657
4854
  TextElementComponent.prototype.getTextStyles = function () {
@@ -4661,6 +4858,46 @@
4661
4858
  TextElementComponent.prototype.contentChanged = function () {
4662
4859
  this.textChanged$.next();
4663
4860
  };
4861
+ TextElementComponent.prototype.editorCreated = function (quill) {
4862
+ var toolbar = quill.getModule('toolbar');
4863
+ var button = toolbar && toolbar.container.querySelector('.ql-mergefield');
4864
+ if (button) {
4865
+ button.setAttribute('data-label', this.mergeFieldPickerConfig.labels.trigger);
4866
+ button.setAttribute('aria-label', this.mergeFieldPickerConfig.labels.trigger);
4867
+ button.setAttribute('title', this.mergeFieldPickerConfig.labels.trigger);
4868
+ }
4869
+ };
4870
+ TextElementComponent.prototype.openMergeFieldPicker = function () {
4871
+ var _this = this;
4872
+ var quill = this.quillEditorComponent && this.quillEditorComponent.quillEditor;
4873
+ if (!quill) {
4874
+ return;
4875
+ }
4876
+ var range = quill.getSelection() || { index: Math.max(quill.getLength() - 1, 0), length: 0 };
4877
+ var format = quill.getFormat(range.index, range.length);
4878
+ var dialogRef = this.matDialog.open(MergeFieldPickerDialogComponent, {
4879
+ data: this.mergeFields,
4880
+ disableClose: false,
4881
+ hasBackdrop: true,
4882
+ height: '760px',
4883
+ maxHeight: 'calc(100vh - 32px)',
4884
+ maxWidth: 'calc(100vw - 32px)',
4885
+ panelClass: 'pb-merge-field-dialog',
4886
+ width: '880px'
4887
+ });
4888
+ dialogRef
4889
+ .afterClosed()
4890
+ .pipe(operators.take(1), operators.takeUntil(this.componentDestroyed$))
4891
+ .subscribe(function (mergeField) {
4892
+ if (!mergeField) {
4893
+ return;
4894
+ }
4895
+ quill.deleteText(range.index, range.length);
4896
+ quill.insertText(range.index, mergeField, format);
4897
+ quill.setSelection(range.index + mergeField.length, 0);
4898
+ _this.contentChanged();
4899
+ });
4900
+ };
4664
4901
  TextElementComponent.prototype.ngOnInit = function () {
4665
4902
  var _this = this;
4666
4903
  this.textChanged$.pipe(operators.debounceTime(600), operators.takeUntil(this.componentDestroyed$)).subscribe(function () {
@@ -4676,16 +4913,21 @@
4676
4913
  TextElementComponent.decorators = [
4677
4914
  { type: i0.Component, args: [{
4678
4915
  selector: 'pb-text-element',
4679
- template: "<!--\n ~ Copyright (c) 2024 Pobuca.\n ~ All rights reserved.\n -->\n\n<div [ngStyle]=\"getTextStyles()\">\n <quill-editor *ngIf=\"quillInit$ | async; else loadingModules\" i18n-placeholder=\"text-element|placeholder\"\n placeholder=\"Insert text here ...\" [modules]=\"staticQuillConfig\" [readOnly]=\"setAsReadOnly$ |async\"\n [(ngModel)]=\"block.innerText\" (onContentChanged)=\"contentChanged()\">\n </quill-editor>\n</div>\n\n<ng-template #loadingModules>\n <span i18n=\"text-element|loading message\">Please wait ...</span>\n</ng-template>\n",
4916
+ template: "<!--\n ~ Copyright (c) 2024 Pobuca.\n ~ All rights reserved.\n -->\n\n<div [ngStyle]=\"getTextStyles()\">\n <quill-editor *ngIf=\"quillInit$ | async; else loadingModules\" i18n-placeholder=\"text-element|placeholder\"\n placeholder=\"Insert text here ...\" [modules]=\"staticQuillConfig\" [readOnly]=\"setAsReadOnly$ |async\"\n [(ngModel)]=\"block.innerText\" (onContentChanged)=\"contentChanged()\"\n (onEditorCreated)=\"editorCreated($event)\">\n </quill-editor>\n</div>\n\n<ng-template #loadingModules>\n <span i18n=\"text-element|loading message\">Please wait ...</span>\n</ng-template>\n",
4680
4917
  encapsulation: i0.ViewEncapsulation.None,
4681
- styles: ["@charset \"UTF-8\";\n/*!\n * Copyright (c) 2024 Pobuca.\n * All rights reserved.\n */\n/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:\"\u2022\"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:\"\u2611\"}.ql-editor ul[data-checked=false]>li:before{content:\"\u2610\"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) \". \"}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) \". \"}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) \". \"}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) \". \"}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) \". \"}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) \". \"}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) \". \"}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) \". \"}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) \". \"}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) \". \"}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble.ql-toolbar:after,.ql-bubble .ql-toolbar:after{clear:both;content:\"\";display:table}.ql-bubble.ql-toolbar button,.ql-bubble .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble.ql-toolbar button svg,.ql-bubble .ql-toolbar button svg{float:left;height:100%}.ql-bubble.ql-toolbar button:active:hover,.ql-bubble .ql-toolbar button:active:hover{outline:none}.ql-bubble.ql-toolbar input.ql-image[type=file],.ql-bubble .ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble.ql-toolbar button:focus,.ql-bubble .ql-toolbar button:focus,.ql-bubble.ql-toolbar button:hover,.ql-bubble .ql-toolbar button:hover{color:#fff}.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#fff}.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter{stroke:#fff}@media (pointer:coarse){.ql-bubble.ql-toolbar button:hover:not(.ql-active),.ql-bubble .ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:\"\";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-stroke.ql-thin,.ql-bubble .ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=\"\"]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-item:before,.ql-bubble .ql-picker.ql-header .ql-picker-label:before{content:\"Normal\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]:before{content:\"Heading 1\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]:before{content:\"Heading 2\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]:before{content:\"Heading 3\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]:before{content:\"Heading 4\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]:before{content:\"Heading 5\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]:before{content:\"Heading 6\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-item:before,.ql-bubble .ql-picker.ql-font .ql-picker-label:before{content:\"Sans Serif\"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:\"Serif\"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:\"Monospace\"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-item:before,.ql-bubble .ql-picker.ql-size .ql-picker-label:before{content:\"Normal\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:\"Small\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:\"Large\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:\"Huge\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:\" \";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{top:10px;position:absolute;right:20px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:\"\u00D7\";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a{position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:before{background-color:#444;border-radius:15px;top:-5px;font-size:12px;color:#fff;content:attr(href);font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:after{border-top:6px solid #444;border-left:6px solid transparent;border-right:6px solid transparent;top:0;content:\" \";height:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:after,.ql-container.ql-bubble:not(.ql-disabled) a:before{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:hover:after,.ql-container.ql-bubble:not(.ql-disabled) a:hover:before{visibility:visible}quill-editor{display:block;word-break:break-word}quill-editor .ql-container{font-family:inherit;font-size:inherit}quill-editor .ql-container .ql-editor{padding:0!important;line-height:inherit;font:inherit;overflow:visible}quill-editor .ql-placeholder .ql-picker-label:before{display:block;content:\"Tags\";min-width:50px}quill-editor .ql-placeholder.ql-expanded .ql-picker-item:before{content:attr(data-value);width:-moz-min-content;width:min-content}quill-editor .ql-tooltip{z-index:10;line-height:normal}quill-editor .ql-tooltip .ql-picker-options{max-height:300px;overflow:auto}quill-editor .ql-toolbar{width:600px;width:-moz-max-content;width:max-content}quill-editor h1,quill-editor h2,quill-editor h3,quill-editor h4,quill-editor h5,quill-editor h6{font-weight:inherit;line-height:inherit}"]
4918
+ styles: ["@charset \"UTF-8\";\n/*!\n * Copyright (c) 2024 Pobuca.\n * All rights reserved.\n */\n/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:\"\u2022\"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:\"\u2611\"}.ql-editor ul[data-checked=false]>li:before{content:\"\u2610\"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) \". \"}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) \". \"}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) \". \"}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) \". \"}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) \". \"}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) \". \"}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) \". \"}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) \". \"}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) \". \"}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) \". \"}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble.ql-toolbar:after,.ql-bubble .ql-toolbar:after{clear:both;content:\"\";display:table}.ql-bubble.ql-toolbar button,.ql-bubble .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble.ql-toolbar button svg,.ql-bubble .ql-toolbar button svg{float:left;height:100%}.ql-bubble.ql-toolbar button:active:hover,.ql-bubble .ql-toolbar button:active:hover{outline:none}.ql-bubble.ql-toolbar input.ql-image[type=file],.ql-bubble .ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble.ql-toolbar button:focus,.ql-bubble .ql-toolbar button:focus,.ql-bubble.ql-toolbar button:hover,.ql-bubble .ql-toolbar button:hover{color:#fff}.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#fff}.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter{stroke:#fff}@media (pointer:coarse){.ql-bubble.ql-toolbar button:hover:not(.ql-active),.ql-bubble .ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:\"\";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-stroke.ql-thin,.ql-bubble .ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=\"\"]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=\"\"]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-item:before,.ql-bubble .ql-picker.ql-header .ql-picker-label:before{content:\"Normal\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]:before{content:\"Heading 1\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]:before{content:\"Heading 2\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]:before{content:\"Heading 3\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]:before{content:\"Heading 4\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]:before{content:\"Heading 5\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]:before{content:\"Heading 6\"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-item:before,.ql-bubble .ql-picker.ql-font .ql-picker-label:before{content:\"Sans Serif\"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:\"Serif\"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:\"Monospace\"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-item:before,.ql-bubble .ql-picker.ql-size .ql-picker-label:before{content:\"Normal\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:\"Small\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:\"Large\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:\"Huge\"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:\" \";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{top:10px;position:absolute;right:20px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:\"\u00D7\";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a{position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:before{background-color:#444;border-radius:15px;top:-5px;font-size:12px;color:#fff;content:attr(href);font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:after{border-top:6px solid #444;border-left:6px solid transparent;border-right:6px solid transparent;top:0;content:\" \";height:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:after,.ql-container.ql-bubble:not(.ql-disabled) a:before{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:hover:after,.ql-container.ql-bubble:not(.ql-disabled) a:hover:before{visibility:visible}quill-editor{display:block;word-break:break-word}quill-editor .ql-container{font-family:inherit;font-size:inherit}quill-editor .ql-container .ql-editor{padding:0!important;line-height:inherit;font:inherit;overflow:visible}quill-editor .ql-mergefield{display:inline-flex;align-items:center;justify-content:center;color:#fff;width:auto!important;min-width:50px;max-width:120px;padding:0 8px!important;white-space:nowrap}quill-editor .ql-mergefield:after{display:block;overflow:hidden;max-width:104px;content:attr(data-label);font-size:12px;line-height:1;text-overflow:ellipsis;white-space:nowrap}quill-editor .ql-tooltip{z-index:10;line-height:normal}quill-editor .ql-toolbar{width:600px;width:-moz-max-content;width:max-content}quill-editor h1,quill-editor h2,quill-editor h3,quill-editor h4,quill-editor h5,quill-editor h6{font-weight:inherit;line-height:inherit}::ng-deep .pb-merge-field-dialog .mat-dialog-container{overflow:hidden;padding:0;border-radius:16px;box-shadow:0 24px 64px rgba(16,24,40,.24)}"]
4682
4919
  },] }
4683
4920
  ];
4684
4921
  TextElementComponent.ctorParameters = function () { return [
4685
4922
  { type: PbUserRestApiService },
4686
4923
  { type: PbEmailObjectStoreService },
4687
- { type: PbUserInterfaceService }
4924
+ { type: PbUserInterfaceService },
4925
+ { type: dialog.MatDialog },
4926
+ { type: undefined, decorators: [{ type: i0.Inject, args: [PB_MERGE_FIELD_PICKER_CONFIG,] }] }
4688
4927
  ]; };
4928
+ TextElementComponent.propDecorators = {
4929
+ quillEditorComponent: [{ type: i0.ViewChild, args: [ngxQuill.QuillEditorComponent,] }]
4930
+ };
4689
4931
 
4690
4932
  var ImageComponent = /** @class */ (function (_super) {
4691
4933
  __extends(ImageComponent, _super);
@@ -6464,10 +6706,6 @@
6464
6706
  * All rights reserved.
6465
6707
  */
6466
6708
 
6467
- /*
6468
- * Copyright (c) 2024 Pobuca.
6469
- * All rights reserved.
6470
- */
6471
6709
  /**
6472
6710
  * @internal
6473
6711
  * @param http
@@ -6542,7 +6780,7 @@
6542
6780
  if (userConfig === void 0) { userConfig = {}; }
6543
6781
  return {
6544
6782
  ngModule: PbEmailBuilderModule,
6545
- providers: [
6783
+ providers: __spread([
6546
6784
  PbEmailBuilderService,
6547
6785
  PbEmailObjectStoreService,
6548
6786
  PbUserInterfaceService,
@@ -6567,7 +6805,9 @@
6567
6805
  useFactory: createCustomRestApiService,
6568
6806
  deps: [i1.HttpClient]
6569
6807
  }
6570
- ]
6808
+ ], (userConfig.mergeFieldPicker
6809
+ ? [{ provide: PB_MERGE_FIELD_PICKER_CONFIG, useValue: userConfig.mergeFieldPicker }]
6810
+ : []))
6571
6811
  };
6572
6812
  };
6573
6813
  return PbEmailBuilderModule;
@@ -6614,6 +6854,7 @@
6614
6854
  DynamicComponentDirective,
6615
6855
  PreviewTemplateComponent,
6616
6856
  TextElementComponent,
6857
+ MergeFieldPickerDialogComponent,
6617
6858
  ImageComponent,
6618
6859
  VideoComponent,
6619
6860
  ButtonComponent,
@@ -6647,6 +6888,7 @@
6647
6888
  exports: [PbEmailBuilderComponent, PreviewTemplateComponent, SlugifyPipe],
6648
6889
  entryComponents: [
6649
6890
  TextElementComponent,
6891
+ MergeFieldPickerDialogComponent,
6650
6892
  ImageComponent,
6651
6893
  VideoComponent,
6652
6894
  ButtonComponent,
@@ -6701,11 +6943,13 @@
6701
6943
  exports.PB_DEFAULT_CONFIG = PB_DEFAULT_CONFIG;
6702
6944
  exports.PB_DEFAULT_FALLBACK_FONTS = PB_DEFAULT_FALLBACK_FONTS;
6703
6945
  exports.PB_DEFAULT_GOOGLE_FONTS = PB_DEFAULT_GOOGLE_FONTS;
6946
+ exports.PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG = PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG;
6704
6947
  exports.PB_DEFAULT_SOCIAL_NETWORKS = PB_DEFAULT_SOCIAL_NETWORKS;
6705
6948
  exports.PB_DEFAULT_STRUCTURES = PB_DEFAULT_STRUCTURES;
6706
6949
  exports.PB_EMAIL_TEMPLATE_SCHEMA = PB_EMAIL_TEMPLATE_SCHEMA;
6707
6950
  exports.PB_FALLBACK_FONTS = PB_FALLBACK_FONTS;
6708
6951
  exports.PB_GOOGLE_FONTS = PB_GOOGLE_FONTS;
6952
+ exports.PB_MERGE_FIELD_PICKER_CONFIG = PB_MERGE_FIELD_PICKER_CONFIG;
6709
6953
  exports.PB_SOCIAL_NETWORKS = PB_SOCIAL_NETWORKS;
6710
6954
  exports.PB_STORAGE_FACTORY = PB_STORAGE_FACTORY;
6711
6955
  exports.PB_STRUCTURES = PB_STRUCTURES;
@@ -6744,24 +6988,26 @@
6744
6988
  exports.deferOf = deferOf;
6745
6989
  exports.getAssetByPath = getAssetByPath;
6746
6990
  exports.isEqual = isEqual;
6991
+ exports.resolveMergeFieldPickerConfig = resolveMergeFieldPickerConfig;
6747
6992
  exports["ɵ0"] = ɵ0;
6748
6993
  exports["ɵa"] = PbEmailObjectStoreService;
6749
6994
  exports["ɵb"] = IpHistoryService;
6750
- exports["ɵba"] = LinkComponent;
6751
- exports["ɵbb"] = AlignComponent;
6752
- exports["ɵbc"] = DirectionComponent;
6753
- exports["ɵbd"] = BackRepatComponent;
6754
- exports["ɵbe"] = ConfirmDialogComponent;
6755
- exports["ɵbf"] = ImageUploadComponent;
6756
- exports["ɵbg"] = BlockSettingsComponent;
6757
- exports["ɵbh"] = StructureSettingsComponent;
6758
- exports["ɵbi"] = GeneralSettingsComponent;
6759
- exports["ɵbj"] = UploadBottomSheetDialogComponent;
6760
- exports["ɵbk"] = UploadImageGalleryComponent;
6761
- exports["ɵbl"] = TemplateListDialogComponent;
6762
- exports["ɵbm"] = ImportDialogComponent;
6763
- exports["ɵbn"] = IpInterceptorInterceptor;
6764
- exports["ɵbo"] = LIBRARY_IS_PRO;
6995
+ exports["ɵba"] = ColorComponent;
6996
+ exports["ɵbb"] = LinkComponent;
6997
+ exports["ɵbc"] = AlignComponent;
6998
+ exports["ɵbd"] = DirectionComponent;
6999
+ exports["ɵbe"] = BackRepatComponent;
7000
+ exports["ɵbf"] = ConfirmDialogComponent;
7001
+ exports["ɵbg"] = ImageUploadComponent;
7002
+ exports["ɵbh"] = BlockSettingsComponent;
7003
+ exports["ɵbi"] = StructureSettingsComponent;
7004
+ exports["ɵbj"] = GeneralSettingsComponent;
7005
+ exports["ɵbk"] = UploadBottomSheetDialogComponent;
7006
+ exports["ɵbl"] = UploadImageGalleryComponent;
7007
+ exports["ɵbm"] = TemplateListDialogComponent;
7008
+ exports["ɵbn"] = ImportDialogComponent;
7009
+ exports["ɵbo"] = IpInterceptorInterceptor;
7010
+ exports["ɵbp"] = LIBRARY_IS_PRO;
6765
7011
  exports["ɵc"] = PbUserInterfaceService;
6766
7012
  exports["ɵd"] = FreeUsersRestApi;
6767
7013
  exports["ɵe"] = FreeUsersPbStorage;
@@ -6770,22 +7016,22 @@
6770
7016
  exports["ɵh"] = DynamicComponentDirective;
6771
7017
  exports["ɵi"] = TextElementComponent;
6772
7018
  exports["ɵj"] = AbstractBlock;
6773
- exports["ɵk"] = ImageComponent;
6774
- exports["ɵl"] = VideoComponent;
6775
- exports["ɵm"] = VideoThumbnailService;
6776
- exports["ɵn"] = ButtonComponent;
6777
- exports["ɵo"] = DividerComponent;
6778
- exports["ɵp"] = SpacerComponent;
6779
- exports["ɵq"] = SocialComponent;
6780
- exports["ɵr"] = BuilderContainerComponent;
6781
- exports["ɵs"] = FontStylesComponent;
6782
- exports["ɵt"] = PaddingComponent;
6783
- exports["ɵu"] = MarginComponent;
6784
- exports["ɵv"] = GapsComponent;
6785
- exports["ɵw"] = LineHeightComponent;
6786
- exports["ɵx"] = WidthHeightComponent;
6787
- exports["ɵy"] = BorderComponent;
6788
- exports["ɵz"] = ColorComponent;
7019
+ exports["ɵk"] = MergeFieldPickerDialogComponent;
7020
+ exports["ɵl"] = ImageComponent;
7021
+ exports["ɵm"] = VideoComponent;
7022
+ exports["ɵn"] = VideoThumbnailService;
7023
+ exports["ɵo"] = ButtonComponent;
7024
+ exports["ɵp"] = DividerComponent;
7025
+ exports["ɵq"] = SpacerComponent;
7026
+ exports["ɵr"] = SocialComponent;
7027
+ exports["ɵs"] = BuilderContainerComponent;
7028
+ exports["ɵt"] = FontStylesComponent;
7029
+ exports["ɵu"] = PaddingComponent;
7030
+ exports["ɵv"] = MarginComponent;
7031
+ exports["ɵw"] = GapsComponent;
7032
+ exports["ɵx"] = LineHeightComponent;
7033
+ exports["ɵy"] = WidthHeightComponent;
7034
+ exports["ɵz"] = BorderComponent;
6789
7035
 
6790
7036
  Object.defineProperty(exports, '__esModule', { value: true });
6791
7037