@firestitch/content 12.1.0 → 12.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/app/interfaces/content-config.d.ts +3 -3
- package/app/modules/content-pages/components/content-page/content-page.component.d.ts +1 -1
- package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +2 -3
- package/app/modules/editor/components/editor/editor.component.d.ts +22 -7
- package/bundles/firestitch-content.umd.js +279 -210
- package/bundles/firestitch-content.umd.js.map +1 -1
- package/esm2015/app/interfaces/content-config.js +1 -1
- package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +5 -4
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +25 -28
- package/esm2015/app/modules/editor/components/editor/editor.component.js +97 -27
- package/fesm2015/firestitch-content.js +196 -129
- package/fesm2015/firestitch-content.js.map +1 -1
- package/package.json +1 -1
@@ -1,55 +1,113 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, ViewChild, } from '@angular/core';
|
2
|
+
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
3
3
|
import { FsMessage } from '@firestitch/message';
|
4
4
|
import { FsTextEditorComponent } from '@firestitch/text-editor';
|
5
|
-
import { Subject } from 'rxjs';
|
6
|
-
import { tap } from 'rxjs/operators';
|
5
|
+
import { Subject, fromEvent } from 'rxjs';
|
6
|
+
import { finalize, take, takeUntil, tap } from 'rxjs/operators';
|
7
|
+
import { ContentPageComponent } from '../../../content-pages/components/content-page';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
import * as i1 from "@angular/material/dialog";
|
9
10
|
import * as i2 from "@firestitch/message";
|
10
11
|
import * as i3 from "@firestitch/dialog";
|
11
|
-
import * as i4 from "@angular/material/button
|
12
|
-
import * as i5 from "@
|
13
|
-
import * as i6 from "@firestitch/
|
14
|
-
import * as i7 from "@firestitch/
|
15
|
-
import * as i8 from "@
|
16
|
-
import * as i9 from "@angular/
|
12
|
+
import * as i4 from "@angular/material/button";
|
13
|
+
import * as i5 from "@angular/material/icon";
|
14
|
+
import * as i6 from "@firestitch/label";
|
15
|
+
import * as i7 from "@firestitch/text-editor";
|
16
|
+
import * as i8 from "@firestitch/form";
|
17
|
+
import * as i9 from "@angular/material/button-toggle";
|
18
|
+
import * as i10 from "@angular/forms";
|
19
|
+
import * as i11 from "@angular/common";
|
17
20
|
export class EditorComponent {
|
18
|
-
constructor(_data, _dialogRef, _message) {
|
21
|
+
constructor(_data, _dialogRef, _dialog, _message, _cdRef) {
|
19
22
|
this._data = _data;
|
20
23
|
this._dialogRef = _dialogRef;
|
24
|
+
this._dialog = _dialog;
|
21
25
|
this._message = _message;
|
22
|
-
this.
|
23
|
-
this.
|
26
|
+
this._cdRef = _cdRef;
|
27
|
+
this.resizing = false;
|
24
28
|
this.editors = { content: true, styles: true };
|
25
29
|
this._destroy$ = new Subject();
|
26
30
|
this.save = () => {
|
27
|
-
return this.
|
31
|
+
return this._config.saveContentPage(this.contentPage)
|
28
32
|
.pipe(tap(() => {
|
29
33
|
this._message.success('Saved Changes');
|
30
34
|
}));
|
31
35
|
};
|
32
36
|
}
|
33
37
|
ngOnInit() {
|
34
|
-
this.
|
35
|
-
this.
|
36
|
-
this.
|
38
|
+
this.contentPage = this._data.contentPage;
|
39
|
+
this._config = this._data.config;
|
40
|
+
this._initSeparator();
|
37
41
|
}
|
38
42
|
editorToggleChange(event) {
|
39
43
|
this.editors[event.value] = !this.editors[event.value];
|
44
|
+
this.updateEditorLayouts();
|
45
|
+
}
|
46
|
+
updateEditorLayouts() {
|
40
47
|
setTimeout(() => {
|
41
|
-
this.
|
42
|
-
|
43
|
-
}
|
44
|
-
|
48
|
+
if (this.editors.content) {
|
49
|
+
this.contentEditor.updateLayout();
|
50
|
+
}
|
51
|
+
if (this.editors.styles) {
|
52
|
+
this.styleEditor.updateLayout();
|
53
|
+
}
|
54
|
+
});
|
45
55
|
}
|
46
56
|
ngOnDestroy() {
|
47
57
|
this._destroy$.next();
|
48
58
|
this._destroy$.complete();
|
49
59
|
}
|
60
|
+
openSettings() {
|
61
|
+
this._dialog.open(ContentPageComponent, {
|
62
|
+
data: {
|
63
|
+
contentPage: this.contentPage,
|
64
|
+
},
|
65
|
+
})
|
66
|
+
.afterClosed()
|
67
|
+
.pipe(takeUntil(this._destroy$))
|
68
|
+
.subscribe((contentPage) => {
|
69
|
+
this.contentPage = Object.assign(Object.assign({}, this.contentPage), contentPage);
|
70
|
+
this._cdRef.markForCheck();
|
71
|
+
});
|
72
|
+
}
|
73
|
+
_initSeparator() {
|
74
|
+
fromEvent(this.separator.nativeElement, 'mousedown')
|
75
|
+
.pipe(takeUntil(this._destroy$))
|
76
|
+
.subscribe((e) => {
|
77
|
+
this._moveSeparator(e);
|
78
|
+
});
|
79
|
+
}
|
80
|
+
_moveSeparator(separatorEvent) {
|
81
|
+
let mouseDown = {
|
82
|
+
clientX: separatorEvent.clientX,
|
83
|
+
clientY: separatorEvent.clientY,
|
84
|
+
offsetLeft: Number(this.separator.nativeElement.offsetLeft),
|
85
|
+
offsetTop: Number(this.separator.nativeElement.offsetTop),
|
86
|
+
firstWidth: Number(this.contentContainer.nativeElement.offsetWidth),
|
87
|
+
secondWidth: Number(this.styleContainer.nativeElement.offsetWidth),
|
88
|
+
};
|
89
|
+
this.resizing = true;
|
90
|
+
this._cdRef.markForCheck();
|
91
|
+
fromEvent(document, 'mousemove')
|
92
|
+
.pipe(finalize(() => {
|
93
|
+
mouseDown = null;
|
94
|
+
this.resizing = false;
|
95
|
+
this._cdRef.markForCheck();
|
96
|
+
this.updateEditorLayouts();
|
97
|
+
}), takeUntil(fromEvent(this.separator.nativeElement, 'mouseup')
|
98
|
+
.pipe(take(1), takeUntil(this._destroy$))), takeUntil(this._destroy$))
|
99
|
+
.subscribe((e) => {
|
100
|
+
const delta = { x: e.clientX - mouseDown.clientX,
|
101
|
+
y: e.clientY - mouseDown.clientY };
|
102
|
+
delta.x = Math.min(Math.max(delta.x, -mouseDown.firstWidth), mouseDown.secondWidth);
|
103
|
+
this.separator.nativeElement.style.left = `${mouseDown.offsetLeft + delta.x}px`;
|
104
|
+
this.contentContainer.nativeElement.style.width = `${mouseDown.firstWidth + delta.x}px`;
|
105
|
+
this.styleContainer.nativeElement.style.width = `${mouseDown.secondWidth - delta.x}px`;
|
106
|
+
});
|
107
|
+
}
|
50
108
|
}
|
51
|
-
EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
|
52
|
-
EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "
|
109
|
+
EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i1.MatDialog }, { token: i2.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
110
|
+
EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "styleEditor", first: true, predicate: ["styleEditor"], descendants: true }, { propertyName: "contentEditor", first: true, predicate: ["contentEditor"], descendants: true }, { propertyName: "separator", first: true, predicate: ["separator"], descendants: true, read: ElementRef, static: true }, { propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ElementRef, static: true }, { propertyName: "styleContainer", first: true, predicate: ["styleContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\">\n <fs-dialog>\n <h1 mat-dialog-title>\n <div class=\"title-container\">\n <div class=\"title\">\n Page\n <div class=\"small\">{{contentPage.name}}</div> \n </div>\n <a\n (click)=\"openSettings()\"\n mat-icon-button>\n <mat-icon>settings</mat-icon>\n </a> \n </div>\n </h1>\n <div mat-dialog-content>\n <div class=\"container\">\n <div class=\"editors\" [ngClass]=\"{ resizing: resizing, 'separator-enabled': editors.styles && editors.content }\">\n <div #contentContainer class=\"editor editor-content\" [ngClass]=\"{ 'content-enabled': editors.content }\">\n <fs-label>Content</fs-label>\n <div class=\"editor-container\">\n <fs-text-editor \n #contentEditor\n [(ngModel)]=\"contentPage.content\" \n name=\"content\"\n [config]=\"{ tabSize: 2, language: 'html' }\">\n </fs-text-editor> \n </div>\n </div>\n <div \n #separator\n class=\"separator\">\n </div>\n <div \n #styleContainer \n class=\"editor editor-styles\" \n [ngClass]=\"{ 'styles-enabled': editors.styles }\"\n [style.width]=\"'600px'\">\n <fs-label>Styles</fs-label>\n <div class=\"editor-container\">\n <fs-text-editor \n #styleEditor\n [(ngModel)]=\"contentPage.styles\" \n name=\"styles\"\n [config]=\"{ tabSize: 2, language: 'scss' }\">\n </fs-text-editor> \n </div>\n </div> \n </div>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <fs-form-dialog-actions>\n </fs-form-dialog-actions>\n <div class=\"toggles\">\n <mat-button-toggle-group multiple>\n <mat-button-toggle value=\"content\" [checked]=\"editors.content\" (change)=\"editorToggleChange($event)\">Content</mat-button-toggle>\n <mat-button-toggle value=\"styles\" [checked]=\"editors.styles\" (change)=\"editorToggleChange($event)\">Styles</mat-button-toggle>\n </mat-button-toggle-group> \n </div>\n </div>\n </fs-dialog>\n</form>\n\n", styles: ["form{display:block;height:100%}form fs-dialog{display:flex;flex-direction:column;height:100%}form ::ng-deep .mat-dialog-content{max-height:none;flex:1}.toggles{display:flex;justify-content:flex-end;justify-self:baseline;flex:1}.container{height:100%;display:flex;flex-direction:column}.editors{width:5000px;max-width:100%;height:100%;display:flex;min-height:0}.editors:not(.separator-enabled) .separator{display:none}.editors:not(.separator-enabled) .editor{width:100%!important}.editors .separator{cursor:col-resize;background-color:#fff;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='30'><path d='M2 0 v30 M5 0 v30 M8 0 v30' fill='none' stroke='black'/></svg>\");background-repeat:no-repeat;background-position:center;width:40px;height:100%;-webkit-user-select:none;user-select:none;flex-shrink:0}.editors .editor{height:100%;display:flex;min-width:0;width:100%;flex-direction:column}.editors .editor.editor-styles:not(.styles-enabled),.editors .editor.editor-content:not(.content-enabled){display:none}.editors .editor .editor-container{height:100%;overflow:hidden;background:#1E1E1E;border-radius:5px}.editors .editor .editor-container fs-text-editor{display:block}.editors .editor+.editor{margin-left:20px}.editors .editor fs-label{background-color:#fff;padding-bottom:5px}.title-container{display:flex;align-items:center}.title-container .title{flex:1}\n"], components: [{ type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileActionPlacement", "mobileWidth", "mode"] }, { type: i4.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6.FsLabelComponent, selector: "fs-label" }, { type: i7.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i8.FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: ["save", "create", "close", "done", "closeData", "name"] }, { type: i9.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-labelledby", "tabIndex", "appearance", "checked", "disabled", "id", "name", "aria-label", "value"], outputs: ["change"], exportAs: ["matButtonToggle"] }], directives: [{ type: i10.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i10.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i8.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup", "deactivationGuard"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i11.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
53
111
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, decorators: [{
|
54
112
|
type: Component,
|
55
113
|
args: [{
|
@@ -60,8 +118,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
60
118
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
61
119
|
type: Inject,
|
62
120
|
args: [MAT_DIALOG_DATA]
|
63
|
-
}] }, { type: i1.MatDialogRef }, { type: i2.FsMessage }]; }, propDecorators: {
|
64
|
-
type:
|
65
|
-
args: [
|
121
|
+
}] }, { type: i1.MatDialogRef }, { type: i1.MatDialog }, { type: i2.FsMessage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { styleEditor: [{
|
122
|
+
type: ViewChild,
|
123
|
+
args: ['styleEditor']
|
124
|
+
}], contentEditor: [{
|
125
|
+
type: ViewChild,
|
126
|
+
args: ['contentEditor']
|
127
|
+
}], separator: [{
|
128
|
+
type: ViewChild,
|
129
|
+
args: ['separator', { static: true, read: ElementRef }]
|
130
|
+
}], contentContainer: [{
|
131
|
+
type: ViewChild,
|
132
|
+
args: ['contentContainer', { static: true, read: ElementRef }]
|
133
|
+
}], styleContainer: [{
|
134
|
+
type: ViewChild,
|
135
|
+
args: ['styleContainer', { static: true, read: ElementRef }]
|
66
136
|
}] } });
|
67
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3IvZWRpdG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3IvZWRpdG9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cGFyYXRvci5uYXRpdmVFbGVtZW50Lm9mZnNldFRvcCksXG4gICAgICBmaXJzdFdpZHRoOiAgTnVtYmVyKHRoaXMuY29udGVudENvbnRhaW5lci5uYXRpdmVFbGVtZW50Lm9mZnNldFdpZHRoKSxcbiAgICAgIHNlY29uZFdpZHRoOiBOdW1iZXIodGhpcy5zdHlsZUNvbnRhaW5lci5uYXRpdmVFbGVtZW50Lm9mZnNldFdpZHRoKSxcbiAgICB9O1xuXG4gICAgdGhpcy5yZXNpemluZyA9IHRydWU7XG4gICAgdGhpcy5fY2RSZWYubWFya0ZvckNoZWNrKCk7XG5cbiAgICBmcm9tRXZlbnQoZG9jdW1lbnQsICdtb3VzZW1vdmUnKVxuICAgICAgLnBpcGUoXG4gICAgICAgIGZpbmFsaXplKCgpID0+IHtcbiAgICAgICAgICBtb3VzZURvd24gPSBudWxsO1xuICAgICAgICAgIHRoaXMucmVzaXppbmcgPSBmYWxzZTtcbiAgICAgICAgICB0aGlzLl9jZFJlZi5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgICB0aGlzLnVwZGF0ZUVkaXRvckxheW91dHMoKTtcbiAgICAgICAgfSksXG4gICAgICAgIHRha2VVbnRpbChcbiAgICAgICAgICBmcm9tRXZlbnQodGhpcy5zZXBhcmF0b3IubmF0aXZlRWxlbWVudCwgJ21vdXNldXAnKVxuICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgIHRha2UoMSksXG4gICAgICAgICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICAgICAgICApLFxuICAgICAgICApLFxuICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgoZTogYW55KSA9PiB7XG4gICAgICAgIGNvbnN0IGRlbHRhID0geyB4OiBlLmNsaWVudFggLSBtb3VzZURvd24uY2xpZW50WCxcbiAgICAgICAgICB5OiBlLmNsaWVudFkgLSBtb3VzZURvd24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T5cbiAgICA8ZGl2IG1hdC1kaWFsb2ctY29udGVudD5cbiAgICAgIDxkaXYgY2xhc3M9XCJjb250YWluZXJcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cImVkaXRvcnNcIiBbbmdDbGFzc109XCJ7IHJlc2l6aW5nOiByZXNpemluZywgJ3NlcGFyYXRvci1lbmFibGVkJzogZWRpdG9ycy5zdHlsZXMgJiYgZWRpdG9ycy5jb250ZW50IH1cIj5cbiAgICAgICAgICA8ZGl2ICNjb250ZW50Q29udGFpbmVyIGNsYXNzPVwiZWRpdG9yIGVkaXRvci1jb250ZW50XCIgW25nQ2xhc3NdPVwieyAnY29udGVudC1lbmFibGVkJzogZWRpdG9ycy5jb250ZW50IH1cIj5cbiAgICAgICAgICAgIDxmcy1sYWJlbD5Db250ZW50PC9mcy1sYWJlbD5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJlZGl0b3ItY29udGFpbmVyXCI+XG4gICAgICAgICAgICAgIDxmcy10ZXh0LWVkaXRvciBcbiAgICAgICAgICAgICAgICAjY29udGVudEVkaXRvclxuICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiY29udGVudFBhZ2UuY29udGVudFwiIFxuICAgICAgICAgICAgICAgIG5hbWU9XCJjb250ZW50XCJcbiAgICAgICAgICAgICAgICBbY29uZmlnXT1cInsgdGFiU2l6ZTogMiwgbGFuZ3VhZ2U6ICdodG1sJyB9XCI+XG4gICAgICAgICAgICAgIDwvZnMtdGV4dC1lZGl0b3I+ICAgICAgICAgICAgICBcbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxkaXYgIFxuICAgICAgICAgICAgI3NlcGFyYXRvclxuICAgICAgICAgICAgY2xhc3M9XCJzZXBhcmF0b3JcIj5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8ZGl2IFxuICAgICAgICAgICAgICAjc3R5bGVDb250YWluZXIgXG4gICAgICAgICAgICAgIGNsYXN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