@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.
- package/bundles/pobuca-email-builder.umd.js +303 -57
- package/bundles/pobuca-email-builder.umd.js.map +1 -1
- package/bundles/pobuca-email-builder.umd.min.js +1 -1
- package/bundles/pobuca-email-builder.umd.min.js.map +1 -1
- package/esm2015/lib/elements/text-element/merge-field-picker-dialog.component.js +154 -0
- package/esm2015/lib/elements/text-element/text-element.component.js +63 -18
- package/esm2015/lib/interfaces/interfaces.js +1 -1
- package/esm2015/lib/pb-email-builder.module.js +9 -3
- package/esm2015/lib/services/user-rest-api-service/user-rest-api.service.js +1 -1
- package/esm2015/lib/tokens/tokens.js +45 -1
- package/esm2015/pobuca-email-builder.js +33 -32
- package/fesm2015/pobuca-email-builder.js +259 -19
- package/fesm2015/pobuca-email-builder.js.map +1 -1
- package/lib/elements/text-element/merge-field-picker-dialog.component.d.ts +47 -0
- package/lib/elements/text-element/text-element.component.d.ts +11 -2
- package/lib/interfaces/interfaces.d.ts +53 -0
- package/lib/services/user-rest-api-service/user-rest-api.service.d.ts +2 -2
- package/lib/tokens/tokens.d.ts +10 -1
- package/package.json +1 -1
- package/pobuca-email-builder.d.ts +32 -31
- package/pobuca-email-builder.metadata.json +1 -1
|
@@ -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,166 @@ 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
|
+
selectSection(section) {
|
|
4064
|
+
this.activeSection = section;
|
|
4065
|
+
}
|
|
4066
|
+
onLengthInput(event) {
|
|
4067
|
+
const input = event.target;
|
|
4068
|
+
const length = input.value.replace(/\D/g, '').replace(/^0+/, '');
|
|
4069
|
+
if (input.value !== length) {
|
|
4070
|
+
input.value = length;
|
|
4071
|
+
}
|
|
4072
|
+
this.length = length;
|
|
4073
|
+
this.copied = false;
|
|
4074
|
+
this.updatePreviewToken();
|
|
4075
|
+
this.changeDetectorRef.detectChanges();
|
|
4076
|
+
}
|
|
4077
|
+
copyPreviewToken() {
|
|
4078
|
+
if (!this.previewToken) {
|
|
4079
|
+
return;
|
|
4080
|
+
}
|
|
4081
|
+
this.copied = this.clipboard.copy(this.previewToken);
|
|
4082
|
+
this.changeDetectorRef.detectChanges();
|
|
4083
|
+
}
|
|
4084
|
+
insertSelectedField() {
|
|
4085
|
+
if (!this.closing && this.previewToken) {
|
|
4086
|
+
this.closing = true;
|
|
4087
|
+
this.matDialogRef.close(this.previewToken);
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
closeOnOutsidePointerDown(event) {
|
|
4091
|
+
if (!this.closing && !this.elementRef.nativeElement.contains(event.target)) {
|
|
4092
|
+
this.closing = true;
|
|
4093
|
+
this.matDialogRef.close();
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
ngOnInit() {
|
|
4097
|
+
this.document.addEventListener('pointerdown', this.outsidePointerDown, true);
|
|
4098
|
+
}
|
|
4099
|
+
ngOnDestroy() {
|
|
4100
|
+
this.document.removeEventListener('pointerdown', this.outsidePointerDown, true);
|
|
4101
|
+
}
|
|
4102
|
+
trackSection(_, section) {
|
|
4103
|
+
return section.label;
|
|
4104
|
+
}
|
|
4105
|
+
trackField(_, field) {
|
|
4106
|
+
return field.value;
|
|
4107
|
+
}
|
|
4108
|
+
normalizeField(field) {
|
|
4109
|
+
const value = typeof field === 'string' ? field : field.value;
|
|
4110
|
+
const parsedField = this.parseToken(value);
|
|
4111
|
+
if (typeof field === 'string') {
|
|
4112
|
+
return parsedField;
|
|
4113
|
+
}
|
|
4114
|
+
return Object.assign(Object.assign({}, field), { label: field.label || parsedField.label, section: field.section || parsedField.section });
|
|
4115
|
+
}
|
|
4116
|
+
parseToken(value) {
|
|
4117
|
+
const match = value.match(/^\{!([^{}:]+):([^{}:]+)/);
|
|
4118
|
+
return {
|
|
4119
|
+
value,
|
|
4120
|
+
label: match ? match[2] : value,
|
|
4121
|
+
section: match ? match[1] : this.config.labels.defaultSection
|
|
4122
|
+
};
|
|
4123
|
+
}
|
|
4124
|
+
updateSections() {
|
|
4125
|
+
const query = this.query.trim().toLocaleLowerCase();
|
|
4126
|
+
const filteredFields = query
|
|
4127
|
+
? this.fields.filter(field => this.matchesQuery(field, query))
|
|
4128
|
+
: this.fields;
|
|
4129
|
+
const sections = filteredFields.reduce((result, field) => {
|
|
4130
|
+
const section = this.config.display.sections
|
|
4131
|
+
? field.section || this.config.labels.defaultSection
|
|
4132
|
+
: this.config.labels.defaultSection;
|
|
4133
|
+
if (!result.has(section)) {
|
|
4134
|
+
result.set(section, []);
|
|
4135
|
+
}
|
|
4136
|
+
result.get(section).push(field);
|
|
4137
|
+
return result;
|
|
4138
|
+
}, new Map());
|
|
4139
|
+
const activeSectionLabel = this.activeSection && this.activeSection.label;
|
|
4140
|
+
this.sections = Array.from(sections.entries()).map(([label, fields]) => ({ label, fields }));
|
|
4141
|
+
this.activeSection = this.sections.find(section => section.label === activeSectionLabel)
|
|
4142
|
+
|| this.sections[0];
|
|
4143
|
+
}
|
|
4144
|
+
matchesQuery(field, query) {
|
|
4145
|
+
return [field.label, field.value, field.section, field.description]
|
|
4146
|
+
.filter(value => Boolean(value))
|
|
4147
|
+
.some(value => value.toLocaleLowerCase().includes(query));
|
|
4148
|
+
}
|
|
4149
|
+
updatePreviewToken() {
|
|
4150
|
+
if (!this.supportsLength) {
|
|
4151
|
+
this.previewToken = this.selectedTokenBase;
|
|
4152
|
+
return;
|
|
4153
|
+
}
|
|
4154
|
+
this.previewToken = `${this.selectedTokenBase}${this.length ? `:${this.length}` : ''}}`;
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
MergeFieldPickerDialogComponent.decorators = [
|
|
4158
|
+
{ type: Component, args: [{
|
|
4159
|
+
selector: 'pb-merge-field-picker-dialog',
|
|
4160
|
+
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",
|
|
4161
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4162
|
+
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}}"]
|
|
4163
|
+
},] }
|
|
4164
|
+
];
|
|
4165
|
+
MergeFieldPickerDialogComponent.ctorParameters = () => [
|
|
4166
|
+
{ type: MatDialogRef },
|
|
4167
|
+
{ type: ChangeDetectorRef },
|
|
4168
|
+
{ type: ElementRef },
|
|
4169
|
+
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
4170
|
+
{ type: Clipboard },
|
|
4171
|
+
{ type: Array, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
4172
|
+
{ type: undefined, decorators: [{ type: Inject, args: [PB_MERGE_FIELD_PICKER_CONFIG,] }] }
|
|
4173
|
+
];
|
|
4174
|
+
|
|
3981
4175
|
/*
|
|
3982
4176
|
* Copyright (c) 2024 Pobuca.
|
|
3983
4177
|
* All rights reserved.
|
|
3984
4178
|
*/
|
|
3985
4179
|
class TextElementComponent extends AbstractBlock {
|
|
3986
|
-
constructor(userRestApi, emailObject, internalService) {
|
|
4180
|
+
constructor(userRestApi, emailObject, internalService, matDialog, mergeFieldPickerConfig) {
|
|
3987
4181
|
super();
|
|
3988
4182
|
this.userRestApi = userRestApi;
|
|
3989
4183
|
this.emailObject = emailObject;
|
|
3990
4184
|
this.internalService = internalService;
|
|
3991
|
-
|
|
4185
|
+
this.matDialog = matDialog;
|
|
3992
4186
|
this.setAsReadOnly$ = this.internalService.currentEditingBlock$.pipe(map(editingBlock => editingBlock !== this.block));
|
|
3993
4187
|
this.staticQuillConfig = {
|
|
3994
4188
|
toolbar: {
|
|
@@ -4001,23 +4195,20 @@ class TextElementComponent extends AbstractBlock {
|
|
|
4001
4195
|
['clean']
|
|
4002
4196
|
],
|
|
4003
4197
|
handlers: {
|
|
4004
|
-
|
|
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
|
-
}
|
|
4198
|
+
mergefield: () => this.openMergeFieldPicker()
|
|
4012
4199
|
}
|
|
4013
4200
|
}
|
|
4014
4201
|
};
|
|
4015
|
-
this.quillInit$ = this.userRestApi.getAllUserMergeFields$.pipe(map(
|
|
4016
|
-
|
|
4017
|
-
|
|
4202
|
+
this.quillInit$ = this.userRestApi.getAllUserMergeFields$.pipe(map(mergeFields => {
|
|
4203
|
+
this.mergeFields = mergeFields;
|
|
4204
|
+
if (mergeFields.length) {
|
|
4205
|
+
this.staticQuillConfig.toolbar.container.splice(-1, 0, ['mergefield']);
|
|
4206
|
+
}
|
|
4018
4207
|
}), mapTo(true), take(1));
|
|
4019
4208
|
this.textChanged$ = new Subject();
|
|
4020
4209
|
this.componentDestroyed$ = new Subject();
|
|
4210
|
+
this.mergeFields = [];
|
|
4211
|
+
this.mergeFieldPickerConfig = resolveMergeFieldPickerConfig(mergeFieldPickerConfig);
|
|
4021
4212
|
}
|
|
4022
4213
|
getTextStyles() {
|
|
4023
4214
|
const { color, font, lineHeight, padding } = this.block.options;
|
|
@@ -4026,6 +4217,45 @@ class TextElementComponent extends AbstractBlock {
|
|
|
4026
4217
|
contentChanged() {
|
|
4027
4218
|
this.textChanged$.next();
|
|
4028
4219
|
}
|
|
4220
|
+
editorCreated(quill) {
|
|
4221
|
+
const toolbar = quill.getModule('toolbar');
|
|
4222
|
+
const button = toolbar && toolbar.container.querySelector('.ql-mergefield');
|
|
4223
|
+
if (button) {
|
|
4224
|
+
button.setAttribute('data-label', this.mergeFieldPickerConfig.labels.trigger);
|
|
4225
|
+
button.setAttribute('aria-label', this.mergeFieldPickerConfig.labels.trigger);
|
|
4226
|
+
button.setAttribute('title', this.mergeFieldPickerConfig.labels.trigger);
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
openMergeFieldPicker() {
|
|
4230
|
+
const quill = this.quillEditorComponent && this.quillEditorComponent.quillEditor;
|
|
4231
|
+
if (!quill) {
|
|
4232
|
+
return;
|
|
4233
|
+
}
|
|
4234
|
+
const range = quill.getSelection() || { index: Math.max(quill.getLength() - 1, 0), length: 0 };
|
|
4235
|
+
const format = quill.getFormat(range.index, range.length);
|
|
4236
|
+
const dialogRef = this.matDialog.open(MergeFieldPickerDialogComponent, {
|
|
4237
|
+
data: this.mergeFields,
|
|
4238
|
+
disableClose: false,
|
|
4239
|
+
hasBackdrop: true,
|
|
4240
|
+
height: '760px',
|
|
4241
|
+
maxHeight: 'calc(100vh - 32px)',
|
|
4242
|
+
maxWidth: 'calc(100vw - 32px)',
|
|
4243
|
+
panelClass: 'pb-merge-field-dialog',
|
|
4244
|
+
width: '880px'
|
|
4245
|
+
});
|
|
4246
|
+
dialogRef
|
|
4247
|
+
.afterClosed()
|
|
4248
|
+
.pipe(take(1), takeUntil(this.componentDestroyed$))
|
|
4249
|
+
.subscribe(mergeField => {
|
|
4250
|
+
if (!mergeField) {
|
|
4251
|
+
return;
|
|
4252
|
+
}
|
|
4253
|
+
quill.deleteText(range.index, range.length);
|
|
4254
|
+
quill.insertText(range.index, mergeField, format);
|
|
4255
|
+
quill.setSelection(range.index + mergeField.length, 0);
|
|
4256
|
+
this.contentChanged();
|
|
4257
|
+
});
|
|
4258
|
+
}
|
|
4029
4259
|
ngOnInit() {
|
|
4030
4260
|
this.textChanged$.pipe(debounceTime(600), takeUntil(this.componentDestroyed$)).subscribe(() => {
|
|
4031
4261
|
this.emailObject.markForCheck();
|
|
@@ -4039,16 +4269,21 @@ class TextElementComponent extends AbstractBlock {
|
|
|
4039
4269
|
TextElementComponent.decorators = [
|
|
4040
4270
|
{ type: Component, args: [{
|
|
4041
4271
|
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",
|
|
4272
|
+
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
4273
|
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}"]
|
|
4274
|
+
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
4275
|
},] }
|
|
4046
4276
|
];
|
|
4047
4277
|
TextElementComponent.ctorParameters = () => [
|
|
4048
4278
|
{ type: PbUserRestApiService },
|
|
4049
4279
|
{ type: PbEmailObjectStoreService },
|
|
4050
|
-
{ type: PbUserInterfaceService }
|
|
4280
|
+
{ type: PbUserInterfaceService },
|
|
4281
|
+
{ type: MatDialog },
|
|
4282
|
+
{ type: undefined, decorators: [{ type: Inject, args: [PB_MERGE_FIELD_PICKER_CONFIG,] }] }
|
|
4051
4283
|
];
|
|
4284
|
+
TextElementComponent.propDecorators = {
|
|
4285
|
+
quillEditorComponent: [{ type: ViewChild, args: [QuillEditorComponent,] }]
|
|
4286
|
+
};
|
|
4052
4287
|
|
|
4053
4288
|
/*
|
|
4054
4289
|
* Copyright (c) 2024 Pobuca.
|
|
@@ -6200,7 +6435,10 @@ class PbEmailBuilderModule {
|
|
|
6200
6435
|
provide: PbUserRestApiService,
|
|
6201
6436
|
useFactory: createCustomRestApiService,
|
|
6202
6437
|
deps: [HttpClient]
|
|
6203
|
-
}
|
|
6438
|
+
},
|
|
6439
|
+
...(userConfig.mergeFieldPicker
|
|
6440
|
+
? [{ provide: PB_MERGE_FIELD_PICKER_CONFIG, useValue: userConfig.mergeFieldPicker }]
|
|
6441
|
+
: [])
|
|
6204
6442
|
]
|
|
6205
6443
|
};
|
|
6206
6444
|
}
|
|
@@ -6247,6 +6485,7 @@ PbEmailBuilderModule.decorators = [
|
|
|
6247
6485
|
DynamicComponentDirective,
|
|
6248
6486
|
PreviewTemplateComponent,
|
|
6249
6487
|
TextElementComponent,
|
|
6488
|
+
MergeFieldPickerDialogComponent,
|
|
6250
6489
|
ImageComponent,
|
|
6251
6490
|
VideoComponent,
|
|
6252
6491
|
ButtonComponent,
|
|
@@ -6280,6 +6519,7 @@ PbEmailBuilderModule.decorators = [
|
|
|
6280
6519
|
exports: [PbEmailBuilderComponent, PreviewTemplateComponent, SlugifyPipe],
|
|
6281
6520
|
entryComponents: [
|
|
6282
6521
|
TextElementComponent,
|
|
6522
|
+
MergeFieldPickerDialogComponent,
|
|
6283
6523
|
ImageComponent,
|
|
6284
6524
|
VideoComponent,
|
|
6285
6525
|
ButtonComponent,
|
|
@@ -6321,5 +6561,5 @@ PbEmailBuilderModule.ctorParameters = () => [
|
|
|
6321
6561
|
* Generated bundle index. Do not edit.
|
|
6322
6562
|
*/
|
|
6323
6563
|
|
|
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,
|
|
6564
|
+
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
6565
|
//# sourceMappingURL=pobuca-email-builder.js.map
|