@pobuca/email-builder 1.5.1 → 1.6.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.
@@ -32,9 +32,10 @@ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
32
32
  import { DOCUMENT, CommonModule } from '@angular/common';
33
33
  import { ScrollingModule } from '@angular/cdk/scrolling';
34
34
  import 'quill';
35
- import { QuillModule, QUILL_CONFIG_TOKEN } from 'ngx-quill';
35
+ import { QuillEditorComponent, QuillModule, QUILL_CONFIG_TOKEN } from 'ngx-quill';
36
36
  import { ColorChromeModule } from 'ngx-color/chrome';
37
37
  import { CdkPortal, PortalModule } from '@angular/cdk/portal';
38
+ import { Clipboard } from '@angular/cdk/clipboard';
38
39
  import { __awaiter } from 'tslib';
39
40
  import '@angular/localize/init';
40
41
 
@@ -727,6 +728,50 @@ const PB_CONFIG = new InjectionToken('PB Builder Configuration', {
727
728
  providedIn: 'root',
728
729
  factory: () => PB_DEFAULT_CONFIG
729
730
  });
731
+ /** Default personalization-field picker terminology and visible features. */
732
+ const PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG = Object.freeze({
733
+ labels: Object.freeze({
734
+ trigger: 'Tags',
735
+ title: 'Personalization tags',
736
+ subtitle: 'Choose a field and customize the token before inserting it.',
737
+ search: 'Search tags',
738
+ defaultSection: 'Tags',
739
+ preview: 'Token preview',
740
+ copy: 'Copy',
741
+ copied: 'Copied',
742
+ length: 'Maximum length',
743
+ optional: 'Optional',
744
+ noLengthLimit: 'No limit',
745
+ insert: 'Insert tag',
746
+ cancel: 'Cancel',
747
+ close: 'Close',
748
+ clearSearch: 'Clear search',
749
+ empty: 'No tags match your search.'
750
+ }),
751
+ display: Object.freeze({
752
+ sections: true,
753
+ descriptions: true,
754
+ rawValues: true,
755
+ preview: true,
756
+ copy: true,
757
+ length: true
758
+ })
759
+ });
760
+ /** Merge a partial picker configuration with the library defaults. */
761
+ function resolveMergeFieldPickerConfig(config = {}) {
762
+ return {
763
+ labels: Object.assign(Object.assign({}, PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG.labels), (config.labels || {})),
764
+ display: Object.assign(Object.assign({}, PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG.display), (config.display || {}))
765
+ };
766
+ }
767
+ /**
768
+ * Personalization-field picker configuration token.
769
+ * Provide a partial {@link IMergeFieldPickerConfig}; missing values use the defaults.
770
+ */
771
+ const PB_MERGE_FIELD_PICKER_CONFIG = new InjectionToken('PB Merge Field Picker Configuration', {
772
+ providedIn: 'root',
773
+ factory: () => PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG
774
+ });
730
775
  /**
731
776
  * The default Storage used by builder. It can be either `localStorage` or `sessionStorage`.
732
777
  */
@@ -3978,17 +4023,160 @@ AbstractBlock.propDecorators = {
3978
4023
  class AbstractEntityBlock {
3979
4024
  }
3980
4025
 
4026
+ class MergeFieldPickerDialogComponent {
4027
+ constructor(matDialogRef, changeDetectorRef, elementRef, document, clipboard, mergeFields, pickerConfig) {
4028
+ this.matDialogRef = matDialogRef;
4029
+ this.changeDetectorRef = changeDetectorRef;
4030
+ this.elementRef = elementRef;
4031
+ this.document = document;
4032
+ this.clipboard = clipboard;
4033
+ this.query = '';
4034
+ this.sections = [];
4035
+ this.length = '';
4036
+ this.previewToken = '';
4037
+ this.supportsLength = false;
4038
+ this.copied = false;
4039
+ this.selectedTokenBase = '';
4040
+ this.closing = false;
4041
+ this.outsidePointerDown = (event) => this.closeOnOutsidePointerDown(event);
4042
+ this.config = resolveMergeFieldPickerConfig(pickerConfig);
4043
+ this.fields = mergeFields.map(field => this.normalizeField(field));
4044
+ this.updateSections();
4045
+ }
4046
+ updateQuery(query) {
4047
+ this.query = query;
4048
+ this.updateSections();
4049
+ }
4050
+ onSearchInput(event) {
4051
+ this.updateQuery(event.target.value);
4052
+ this.changeDetectorRef.detectChanges();
4053
+ }
4054
+ selectField(field) {
4055
+ const tokenParts = field.value.match(/^(\{![^{}:]+:[^{}:]+)(?::([1-9]\d*))?\}$/);
4056
+ this.selectedField = field;
4057
+ this.supportsLength = this.config.display.length && Boolean(tokenParts);
4058
+ this.selectedTokenBase = this.supportsLength && tokenParts ? tokenParts[1] : field.value;
4059
+ this.length = (this.supportsLength && tokenParts && tokenParts[2]) || '';
4060
+ this.copied = false;
4061
+ this.updatePreviewToken();
4062
+ }
4063
+ onLengthInput(event) {
4064
+ const input = event.target;
4065
+ const length = input.value.replace(/\D/g, '').replace(/^0+/, '');
4066
+ if (input.value !== length) {
4067
+ input.value = length;
4068
+ }
4069
+ this.length = length;
4070
+ this.copied = false;
4071
+ this.updatePreviewToken();
4072
+ this.changeDetectorRef.detectChanges();
4073
+ }
4074
+ copyPreviewToken() {
4075
+ if (!this.previewToken) {
4076
+ return;
4077
+ }
4078
+ this.copied = this.clipboard.copy(this.previewToken);
4079
+ this.changeDetectorRef.detectChanges();
4080
+ }
4081
+ insertSelectedField() {
4082
+ if (!this.closing && this.previewToken) {
4083
+ this.closing = true;
4084
+ this.matDialogRef.close(this.previewToken);
4085
+ }
4086
+ }
4087
+ closeOnOutsidePointerDown(event) {
4088
+ if (!this.closing && !this.elementRef.nativeElement.contains(event.target)) {
4089
+ this.closing = true;
4090
+ this.matDialogRef.close();
4091
+ }
4092
+ }
4093
+ ngOnInit() {
4094
+ this.document.addEventListener('pointerdown', this.outsidePointerDown, true);
4095
+ }
4096
+ ngOnDestroy() {
4097
+ this.document.removeEventListener('pointerdown', this.outsidePointerDown, true);
4098
+ }
4099
+ trackSection(_, section) {
4100
+ return section.label;
4101
+ }
4102
+ trackField(_, field) {
4103
+ return field.value;
4104
+ }
4105
+ normalizeField(field) {
4106
+ const value = typeof field === 'string' ? field : field.value;
4107
+ const parsedField = this.parseToken(value);
4108
+ if (typeof field === 'string') {
4109
+ return parsedField;
4110
+ }
4111
+ return Object.assign(Object.assign({}, field), { label: field.label || parsedField.label, section: field.section || parsedField.section });
4112
+ }
4113
+ parseToken(value) {
4114
+ const match = value.match(/^\{!([^{}:]+):([^{}:]+)/);
4115
+ return {
4116
+ value,
4117
+ label: match ? match[2] : value,
4118
+ section: match ? match[1] : this.config.labels.defaultSection
4119
+ };
4120
+ }
4121
+ updateSections() {
4122
+ const query = this.query.trim().toLocaleLowerCase();
4123
+ const filteredFields = query
4124
+ ? this.fields.filter(field => this.matchesQuery(field, query))
4125
+ : this.fields;
4126
+ const sections = filteredFields.reduce((result, field) => {
4127
+ const section = this.config.display.sections
4128
+ ? field.section || this.config.labels.defaultSection
4129
+ : this.config.labels.defaultSection;
4130
+ if (!result.has(section)) {
4131
+ result.set(section, []);
4132
+ }
4133
+ result.get(section).push(field);
4134
+ return result;
4135
+ }, new Map());
4136
+ this.sections = Array.from(sections.entries()).map(([label, fields]) => ({ label, fields }));
4137
+ }
4138
+ matchesQuery(field, query) {
4139
+ return [field.label, field.value, field.section, field.description]
4140
+ .filter(value => Boolean(value))
4141
+ .some(value => value.toLocaleLowerCase().includes(query));
4142
+ }
4143
+ updatePreviewToken() {
4144
+ if (!this.supportsLength) {
4145
+ this.previewToken = this.selectedTokenBase;
4146
+ return;
4147
+ }
4148
+ this.previewToken = `${this.selectedTokenBase}${this.length ? `:${this.length}` : ''}}`;
4149
+ }
4150
+ }
4151
+ MergeFieldPickerDialogComponent.decorators = [
4152
+ { type: Component, args: [{
4153
+ selector: 'pb-merge-field-picker-dialog',
4154
+ 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 class=\"merge-field-sections\" *ngIf=\"sections.length; else noResults\">\n <section *ngFor=\"let section of sections; trackBy: trackSection\" class=\"merge-field-section\">\n <h3 *ngIf=\"config.display.sections\">{{ section.label }}</h3>\n <button\n *ngFor=\"let field of section.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",
4155
+ changeDetection: ChangeDetectionStrategy.OnPush,
4156
+ styles: [":host{display:block;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{margin:0;padding:0 1.5rem}.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-sections{display:grid;gap:1rem;padding-bottom:.25rem}.merge-field-section{display:grid;gap:.25rem}.merge-field-section h3{margin:0 .75rem .125rem;color:#667085;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.merge-field-option{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-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-option ::ng-deep .mat-button-wrapper{grid-template-columns:minmax(0,1fr) 20px}.merge-field-option code{display:none}}"]
4157
+ },] }
4158
+ ];
4159
+ MergeFieldPickerDialogComponent.ctorParameters = () => [
4160
+ { type: MatDialogRef },
4161
+ { type: ChangeDetectorRef },
4162
+ { type: ElementRef },
4163
+ { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
4164
+ { type: Clipboard },
4165
+ { type: Array, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
4166
+ { type: undefined, decorators: [{ type: Inject, args: [PB_MERGE_FIELD_PICKER_CONFIG,] }] }
4167
+ ];
4168
+
3981
4169
  /*
3982
4170
  * Copyright (c) 2024 Pobuca.
3983
4171
  * All rights reserved.
3984
4172
  */
3985
4173
  class TextElementComponent extends AbstractBlock {
3986
- constructor(userRestApi, emailObject, internalService) {
4174
+ constructor(userRestApi, emailObject, internalService, matDialog, mergeFieldPickerConfig) {
3987
4175
  super();
3988
4176
  this.userRestApi = userRestApi;
3989
4177
  this.emailObject = emailObject;
3990
4178
  this.internalService = internalService;
3991
- // @Input() block: TextBlock;
4179
+ this.matDialog = matDialog;
3992
4180
  this.setAsReadOnly$ = this.internalService.currentEditingBlock$.pipe(map(editingBlock => editingBlock !== this.block));
3993
4181
  this.staticQuillConfig = {
3994
4182
  toolbar: {
@@ -4001,23 +4189,20 @@ class TextElementComponent extends AbstractBlock {
4001
4189
  ['clean']
4002
4190
  ],
4003
4191
  handlers: {
4004
- placeholder(selector) {
4005
- const range = this.quill.getSelection();
4006
- const format = this.quill.getFormat();
4007
- const text = this.quill.getText(range.index, range.length);
4008
- this.quill.deleteText(range.index, text.length);
4009
- this.quill.insertText(range.index, selector, format);
4010
- this.quill.setSelection(range.index, selector.length);
4011
- }
4192
+ mergefield: () => this.openMergeFieldPicker()
4012
4193
  }
4013
4194
  }
4014
4195
  };
4015
- this.quillInit$ = this.userRestApi.getAllUserMergeFields$.pipe(map(placeholder => {
4016
- // @ts-ignore
4017
- this.staticQuillConfig.toolbar.container.splice(-1, 0, [{ placeholder }]);
4196
+ this.quillInit$ = this.userRestApi.getAllUserMergeFields$.pipe(map(mergeFields => {
4197
+ this.mergeFields = mergeFields;
4198
+ if (mergeFields.length) {
4199
+ this.staticQuillConfig.toolbar.container.splice(-1, 0, ['mergefield']);
4200
+ }
4018
4201
  }), mapTo(true), take(1));
4019
4202
  this.textChanged$ = new Subject();
4020
4203
  this.componentDestroyed$ = new Subject();
4204
+ this.mergeFields = [];
4205
+ this.mergeFieldPickerConfig = resolveMergeFieldPickerConfig(mergeFieldPickerConfig);
4021
4206
  }
4022
4207
  getTextStyles() {
4023
4208
  const { color, font, lineHeight, padding } = this.block.options;
@@ -4026,6 +4211,43 @@ class TextElementComponent extends AbstractBlock {
4026
4211
  contentChanged() {
4027
4212
  this.textChanged$.next();
4028
4213
  }
4214
+ editorCreated(quill) {
4215
+ const toolbar = quill.getModule('toolbar');
4216
+ const button = toolbar && toolbar.container.querySelector('.ql-mergefield');
4217
+ if (button) {
4218
+ button.setAttribute('data-label', this.mergeFieldPickerConfig.labels.trigger);
4219
+ button.setAttribute('aria-label', this.mergeFieldPickerConfig.labels.trigger);
4220
+ button.setAttribute('title', this.mergeFieldPickerConfig.labels.trigger);
4221
+ }
4222
+ }
4223
+ openMergeFieldPicker() {
4224
+ const quill = this.quillEditorComponent && this.quillEditorComponent.quillEditor;
4225
+ if (!quill) {
4226
+ return;
4227
+ }
4228
+ const range = quill.getSelection() || { index: Math.max(quill.getLength() - 1, 0), length: 0 };
4229
+ const format = quill.getFormat(range.index, range.length);
4230
+ const dialogRef = this.matDialog.open(MergeFieldPickerDialogComponent, {
4231
+ data: this.mergeFields,
4232
+ disableClose: false,
4233
+ hasBackdrop: true,
4234
+ maxWidth: '720px',
4235
+ panelClass: 'pb-merge-field-dialog',
4236
+ width: '560px'
4237
+ });
4238
+ dialogRef
4239
+ .afterClosed()
4240
+ .pipe(take(1), takeUntil(this.componentDestroyed$))
4241
+ .subscribe(mergeField => {
4242
+ if (!mergeField) {
4243
+ return;
4244
+ }
4245
+ quill.deleteText(range.index, range.length);
4246
+ quill.insertText(range.index, mergeField, format);
4247
+ quill.setSelection(range.index + mergeField.length, 0);
4248
+ this.contentChanged();
4249
+ });
4250
+ }
4029
4251
  ngOnInit() {
4030
4252
  this.textChanged$.pipe(debounceTime(600), takeUntil(this.componentDestroyed$)).subscribe(() => {
4031
4253
  this.emailObject.markForCheck();
@@ -4039,16 +4261,21 @@ class TextElementComponent extends AbstractBlock {
4039
4261
  TextElementComponent.decorators = [
4040
4262
  { type: Component, args: [{
4041
4263
  selector: 'pb-text-element',
4042
- 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",
4264
+ 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",
4043
4265
  encapsulation: ViewEncapsulation.None,
4044
- 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}"]
4266
+ 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)}"]
4045
4267
  },] }
4046
4268
  ];
4047
4269
  TextElementComponent.ctorParameters = () => [
4048
4270
  { type: PbUserRestApiService },
4049
4271
  { type: PbEmailObjectStoreService },
4050
- { type: PbUserInterfaceService }
4272
+ { type: PbUserInterfaceService },
4273
+ { type: MatDialog },
4274
+ { type: undefined, decorators: [{ type: Inject, args: [PB_MERGE_FIELD_PICKER_CONFIG,] }] }
4051
4275
  ];
4276
+ TextElementComponent.propDecorators = {
4277
+ quillEditorComponent: [{ type: ViewChild, args: [QuillEditorComponent,] }]
4278
+ };
4052
4279
 
4053
4280
  /*
4054
4281
  * Copyright (c) 2024 Pobuca.
@@ -6200,7 +6427,10 @@ class PbEmailBuilderModule {
6200
6427
  provide: PbUserRestApiService,
6201
6428
  useFactory: createCustomRestApiService,
6202
6429
  deps: [HttpClient]
6203
- }
6430
+ },
6431
+ ...(userConfig.mergeFieldPicker
6432
+ ? [{ provide: PB_MERGE_FIELD_PICKER_CONFIG, useValue: userConfig.mergeFieldPicker }]
6433
+ : [])
6204
6434
  ]
6205
6435
  };
6206
6436
  }
@@ -6247,6 +6477,7 @@ PbEmailBuilderModule.decorators = [
6247
6477
  DynamicComponentDirective,
6248
6478
  PreviewTemplateComponent,
6249
6479
  TextElementComponent,
6480
+ MergeFieldPickerDialogComponent,
6250
6481
  ImageComponent,
6251
6482
  VideoComponent,
6252
6483
  ButtonComponent,
@@ -6280,6 +6511,7 @@ PbEmailBuilderModule.decorators = [
6280
6511
  exports: [PbEmailBuilderComponent, PreviewTemplateComponent, SlugifyPipe],
6281
6512
  entryComponents: [
6282
6513
  TextElementComponent,
6514
+ MergeFieldPickerDialogComponent,
6283
6515
  ImageComponent,
6284
6516
  VideoComponent,
6285
6517
  ButtonComponent,
@@ -6321,5 +6553,5 @@ PbEmailBuilderModule.ctorParameters = () => [
6321
6553
  * Generated bundle index. Do not edit.
6322
6554
  */
6323
6555
 
6324
- export { AIPBlock, ButtonBlock, Defaults, DividerBlock, ETemplatesStorage, ImageUploader as FreeUsersImageUploader, ImageBlock, PBEmail, PB_BLOCKS, PB_CONFIG, PB_DEFAULT_BLOCKS, PB_DEFAULT_CONFIG, PB_DEFAULT_FALLBACK_FONTS, PB_DEFAULT_GOOGLE_FONTS, PB_DEFAULT_SOCIAL_NETWORKS, PB_DEFAULT_STRUCTURES, PB_EMAIL_TEMPLATE_SCHEMA, PB_FALLBACK_FONTS, PB_GOOGLE_FONTS, PB_SOCIAL_NETWORKS, PB_STORAGE_FACTORY, PB_STRUCTURES, PB_TEMPLATES_TEMPORARY_STORAGE, PbEmailBuilderComponent, PbEmailBuilderModule, PbEmailBuilderService, PbStorageService, PbUserImageUploaderService, PbUserMiddlewaresService, PbUserRestApiService, PreviewTemplateComponent, SlugifyPipe, SocialBlock, SpacerBlock, Structure, TextBlock, VideoBlock, assignBlockId, bytesToSize, cloneDeep, createBackground, createBlockId, createBorder, createCustomRestApiService, createFont, createLineHeight, createMargin, createPadding, createUserMiddlewareService, createUserUploaderService, createUsersIpStorage, createWidthHeight, defaultColumnsOptions, defaultsDeep, deferOf, getAssetByPath, isEqual, ɵ0, PbEmailObjectStoreService as ɵa, IpHistoryService as ɵb, LinkComponent as ɵba, AlignComponent as ɵbb, DirectionComponent as ɵbc, BackRepatComponent as ɵbd, ConfirmDialogComponent as ɵbe, ImageUploadComponent as ɵbf, BlockSettingsComponent as ɵbg, StructureSettingsComponent as ɵbh, GeneralSettingsComponent as ɵbi, UploadBottomSheetDialogComponent as ɵbj, UploadImageGalleryComponent as ɵbk, TemplateListDialogComponent as ɵbl, ImportDialogComponent as ɵbm, IpInterceptorInterceptor as ɵbn, LIBRARY_IS_PRO as ɵbo, PbUserInterfaceService as ɵc, FreeUsersRestApi as ɵd, FreeUsersPbStorage as ɵe, StructureComponent as ɵf, BlockComponent as ɵg, DynamicComponentDirective as ɵh, TextElementComponent as ɵi, AbstractBlock as ɵj, ImageComponent as ɵk, VideoComponent as ɵl, VideoThumbnailService as ɵm, ButtonComponent as ɵn, DividerComponent as ɵo, SpacerComponent as ɵp, SocialComponent as ɵq, BuilderContainerComponent as ɵr, FontStylesComponent as ɵs, PaddingComponent as ɵt, MarginComponent as ɵu, GapsComponent as ɵv, LineHeightComponent as ɵw, WidthHeightComponent as ɵx, BorderComponent as ɵy, ColorComponent as ɵz };
6556
+ export { AIPBlock, ButtonBlock, Defaults, DividerBlock, ETemplatesStorage, ImageUploader as FreeUsersImageUploader, ImageBlock, PBEmail, PB_BLOCKS, PB_CONFIG, PB_DEFAULT_BLOCKS, PB_DEFAULT_CONFIG, PB_DEFAULT_FALLBACK_FONTS, PB_DEFAULT_GOOGLE_FONTS, PB_DEFAULT_MERGE_FIELD_PICKER_CONFIG, PB_DEFAULT_SOCIAL_NETWORKS, PB_DEFAULT_STRUCTURES, PB_EMAIL_TEMPLATE_SCHEMA, PB_FALLBACK_FONTS, PB_GOOGLE_FONTS, PB_MERGE_FIELD_PICKER_CONFIG, PB_SOCIAL_NETWORKS, PB_STORAGE_FACTORY, PB_STRUCTURES, PB_TEMPLATES_TEMPORARY_STORAGE, PbEmailBuilderComponent, PbEmailBuilderModule, PbEmailBuilderService, PbStorageService, PbUserImageUploaderService, PbUserMiddlewaresService, PbUserRestApiService, PreviewTemplateComponent, SlugifyPipe, SocialBlock, SpacerBlock, Structure, TextBlock, VideoBlock, assignBlockId, bytesToSize, cloneDeep, createBackground, createBlockId, createBorder, createCustomRestApiService, createFont, createLineHeight, createMargin, createPadding, createUserMiddlewareService, createUserUploaderService, createUsersIpStorage, createWidthHeight, defaultColumnsOptions, defaultsDeep, deferOf, getAssetByPath, isEqual, resolveMergeFieldPickerConfig, ɵ0, PbEmailObjectStoreService as ɵa, IpHistoryService as ɵb, ColorComponent as ɵba, LinkComponent as ɵbb, AlignComponent as ɵbc, DirectionComponent as ɵbd, BackRepatComponent as ɵbe, ConfirmDialogComponent as ɵbf, ImageUploadComponent as ɵbg, BlockSettingsComponent as ɵbh, StructureSettingsComponent as ɵbi, GeneralSettingsComponent as ɵbj, UploadBottomSheetDialogComponent as ɵbk, UploadImageGalleryComponent as ɵbl, TemplateListDialogComponent as ɵbm, ImportDialogComponent as ɵbn, IpInterceptorInterceptor as ɵbo, LIBRARY_IS_PRO as ɵbp, PbUserInterfaceService as ɵc, FreeUsersRestApi as ɵd, FreeUsersPbStorage as ɵe, StructureComponent as ɵf, BlockComponent as ɵg, DynamicComponentDirective as ɵh, TextElementComponent as ɵi, AbstractBlock as ɵj, MergeFieldPickerDialogComponent as ɵk, ImageComponent as ɵl, VideoComponent as ɵm, VideoThumbnailService as ɵn, ButtonComponent as ɵo, DividerComponent as ɵp, SpacerComponent as ɵq, SocialComponent as ɵr, BuilderContainerComponent as ɵs, FontStylesComponent as ɵt, PaddingComponent as ɵu, MarginComponent as ɵv, GapsComponent as ɵw, LineHeightComponent as ɵx, WidthHeightComponent as ɵy, BorderComponent as ɵz };
6325
6557
  //# sourceMappingURL=pobuca-email-builder.js.map