@stratusjs/angular 0.7.5 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular.bundle.js +87 -1302
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/boot.js +1 -0
- package/src/boot.js.map +1 -1
- package/src/boot.min.js +1 -1
- package/src/boot.ts +1 -0
- package/src/core/dialog.interface.js.map +1 -0
- package/src/tree/tree-node.component.html +1 -1
- package/src/tree/tree-node.component.min.html +1 -1
- package/src/tree/tree.component.css +47 -2
- package/src/tree/tree.component.css.map +1 -1
- package/src/tree/tree.component.min.css +1 -1
- package/src/tree/tree.component.scss +99 -6
- package/src/editor/quill-break-blot.plugin.js +0 -38
- package/src/editor/quill-break-blot.plugin.js.map +0 -1
- package/src/editor/quill-break-blot.plugin.min.js +0 -1
- package/src/editor/quill-html-edit.plugin.js +0 -164
- package/src/editor/quill-html-edit.plugin.js.map +0 -1
- package/src/editor/quill-html-edit.plugin.min.js +0 -1
- package/src/editor/quill-image-format.plugin.js +0 -50
- package/src/editor/quill-image-format.plugin.js.map +0 -1
- package/src/editor/quill-image-format.plugin.min.js +0 -1
- package/src/editor/quill-input-button.plugin.js +0 -98
- package/src/editor/quill-input-button.plugin.js.map +0 -1
- package/src/editor/quill-input-button.plugin.min.js +0 -1
- package/src/froala/editor/froala-editor.directive.js +0 -328
- package/src/froala/editor/froala-editor.directive.js.map +0 -1
- package/src/froala/editor/froala-editor.directive.min.js +0 -1
- package/src/froala/editor/froala-editor.module.js +0 -37
- package/src/froala/editor/froala-editor.module.js.map +0 -1
- package/src/froala/editor/froala-editor.module.min.js +0 -1
- package/src/froala/editor/index.js +0 -22
- package/src/froala/editor/index.js.map +0 -1
- package/src/froala/editor/index.min.js +0 -1
- package/src/froala/plugins/image_manager.js +0 -364
- package/src/froala/plugins/image_manager.js.map +0 -1
- package/src/froala/plugins/image_manager.min.js +0 -1
- package/src/froala/view/froala-view.directive.js +0 -49
- package/src/froala/view/froala-view.directive.js.map +0 -1
- package/src/froala/view/froala-view.directive.min.js +0 -1
- package/src/froala/view/froala-view.module.js +0 -37
- package/src/froala/view/froala-view.module.js.map +0 -1
- package/src/froala/view/froala-view.module.min.js +0 -1
- package/src/froala/view/index.js +0 -22
- package/src/froala/view/index.js.map +0 -1
- package/src/froala/view/index.min.js +0 -1
- package/src/root/root.component.js +0 -43
- package/src/root/root.component.js.map +0 -1
- package/src/root/root.component.min.js +0 -1
package/dist/angular.bundle.js
CHANGED
|
@@ -56677,8 +56677,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56677
56677
|
const systemDir$c = '@stratusjs/angular';
|
|
56678
56678
|
const moduleName$d = 'citation-dialog';
|
|
56679
56679
|
const parentModuleName$6 = 'editor';
|
|
56680
|
-
const min$
|
|
56681
|
-
const localDir$
|
|
56680
|
+
const min$g = !cookie('env') ? '.min' : '';
|
|
56681
|
+
const localDir$h = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$c}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
56682
56682
|
let CitationDialogComponent = exports('CitationDialogComponent', class CitationDialogComponent extends ResponsiveComponent {
|
|
56683
56683
|
constructor(dialogRef, data, fb, snackBar, iconRegistry, sanitizer, ref) {
|
|
56684
56684
|
super();
|
|
@@ -56700,7 +56700,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56700
56700
|
ngOnInit() {
|
|
56701
56701
|
this.uid = uniqueId$3(`sa_${snakeCase(moduleName$d)}_component_`);
|
|
56702
56702
|
Stratus.Instances[this.uid] = this;
|
|
56703
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
56703
|
+
Stratus.Internals.CssLoader(`${localDir$h}${parentModuleName$6}/${moduleName$d}.component${min$g}.css`);
|
|
56704
56704
|
this.model = this.data.model;
|
|
56705
56705
|
this.property = this.data.property;
|
|
56706
56706
|
this.editor = this.data.editor;
|
|
@@ -56818,7 +56818,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56818
56818
|
exports('CitationDialogComponent', CitationDialogComponent = __decorate$p([
|
|
56819
56819
|
Component({
|
|
56820
56820
|
selector: `sa-${moduleName$d}`,
|
|
56821
|
-
templateUrl: `${localDir$
|
|
56821
|
+
templateUrl: `${localDir$h}/${parentModuleName$6}/${moduleName$d}.component${min$g}.html`,
|
|
56822
56822
|
}),
|
|
56823
56823
|
__param$7(1, Inject(MAT_DIALOG_DATA)),
|
|
56824
56824
|
__metadata$l("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -56905,8 +56905,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56905
56905
|
const systemDir$b = '@stratusjs/angular';
|
|
56906
56906
|
const moduleName$c = 'link-dialog';
|
|
56907
56907
|
const parentModuleName$5 = 'editor';
|
|
56908
|
-
const min$
|
|
56909
|
-
const localDir$
|
|
56908
|
+
const min$f = !cookie('env') ? '.min' : '';
|
|
56909
|
+
const localDir$g = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$b}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
56910
56910
|
let LinkDialogComponent = exports('LinkDialogComponent', class LinkDialogComponent extends ResponsiveComponent {
|
|
56911
56911
|
constructor(dialogRef, data, fb, backend, snackBar, iconRegistry, sanitizer, ref) {
|
|
56912
56912
|
super();
|
|
@@ -56942,7 +56942,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56942
56942
|
ngOnInit() {
|
|
56943
56943
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$c)}_component_`);
|
|
56944
56944
|
Stratus.Instances[this.uid] = this;
|
|
56945
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
56945
|
+
Stratus.Internals.CssLoader(`${localDir$g}${parentModuleName$5}/${moduleName$c}.component${min$f}.css`)
|
|
56946
56946
|
.then(() => {
|
|
56947
56947
|
this.isStyled = true;
|
|
56948
56948
|
this.refresh();
|
|
@@ -57232,7 +57232,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57232
57232
|
exports('LinkDialogComponent', LinkDialogComponent = __decorate$n([
|
|
57233
57233
|
Component({
|
|
57234
57234
|
selector: `sa-${moduleName$c}`,
|
|
57235
|
-
templateUrl: `${localDir$
|
|
57235
|
+
templateUrl: `${localDir$g}/${parentModuleName$5}/${moduleName$c}.component${min$f}.html`,
|
|
57236
57236
|
}),
|
|
57237
57237
|
__param$6(1, Inject(MAT_DIALOG_DATA)),
|
|
57238
57238
|
__metadata$j("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -57258,8 +57258,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57258
57258
|
const systemDir$a = '@stratusjs/angular';
|
|
57259
57259
|
const moduleName$b = 'media-dialog';
|
|
57260
57260
|
const parentModuleName$4 = 'editor';
|
|
57261
|
-
const min$
|
|
57262
|
-
const localDir$
|
|
57261
|
+
const min$e = !cookie('env') ? '.min' : '';
|
|
57262
|
+
const localDir$f = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$a}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
57263
57263
|
let MediaDialogComponent = exports('MediaDialogComponent', class MediaDialogComponent extends ResponsiveComponent {
|
|
57264
57264
|
constructor(dialogRef, data, fb, backend, snackBar, ref) {
|
|
57265
57265
|
super();
|
|
@@ -57283,7 +57283,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57283
57283
|
ngOnInit() {
|
|
57284
57284
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$b)}_component_`);
|
|
57285
57285
|
Stratus.Instances[this.uid] = this;
|
|
57286
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
57286
|
+
Stratus.Internals.CssLoader(`${localDir$f}/${parentModuleName$4}/${moduleName$b}.component${min$e}.css`);
|
|
57287
57287
|
this.model = this.data.model;
|
|
57288
57288
|
this.property = this.data.property;
|
|
57289
57289
|
this.editor = this.data.editor;
|
|
@@ -57522,7 +57522,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57522
57522
|
exports('MediaDialogComponent', MediaDialogComponent = __decorate$m([
|
|
57523
57523
|
Component({
|
|
57524
57524
|
selector: `sa-${moduleName$b}`,
|
|
57525
|
-
templateUrl: `${localDir$
|
|
57525
|
+
templateUrl: `${localDir$f}/${parentModuleName$4}/${moduleName$b}.component${min$e}.html`,
|
|
57526
57526
|
}),
|
|
57527
57527
|
__param$5(1, Inject(MAT_DIALOG_DATA)),
|
|
57528
57528
|
__metadata$i("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -57961,8 +57961,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57961
57961
|
const systemDir$9 = '@stratusjs/angular';
|
|
57962
57962
|
const moduleName$a = 'code-view-dialog';
|
|
57963
57963
|
const parentModuleName$3 = 'editor';
|
|
57964
|
-
const min$
|
|
57965
|
-
const localDir$
|
|
57964
|
+
const min$d = !cookie('env') ? '.min' : '';
|
|
57965
|
+
const localDir$e = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$9}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
57966
57966
|
let CodeViewDialogComponent = exports('CodeViewDialogComponent', class CodeViewDialogComponent extends ResponsiveComponent {
|
|
57967
57967
|
constructor(dialogRef, data, ref, fb, ngZone) {
|
|
57968
57968
|
super();
|
|
@@ -57985,7 +57985,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57985
57985
|
ngOnInit() {
|
|
57986
57986
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$a)}_component_`);
|
|
57987
57987
|
Stratus.Instances[this.uid] = this;
|
|
57988
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
57988
|
+
Stratus.Internals.CssLoader(`${localDir$e}/${parentModuleName$3}/${moduleName$a}.component${min$d}.css`);
|
|
57989
57989
|
this.model = this.data.model;
|
|
57990
57990
|
this.property = this.data.property;
|
|
57991
57991
|
const dataControl = this.form.get('dataString');
|
|
@@ -58017,7 +58017,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
58017
58017
|
exports('CodeViewDialogComponent', CodeViewDialogComponent = __decorate$l([
|
|
58018
58018
|
Component({
|
|
58019
58019
|
selector: `sa-${moduleName$a}`,
|
|
58020
|
-
templateUrl: `${localDir$
|
|
58020
|
+
templateUrl: `${localDir$e}/${parentModuleName$3}/${moduleName$a}.component${min$d}.html`,
|
|
58021
58021
|
}),
|
|
58022
58022
|
__param$4(1, Inject(MAT_DIALOG_DATA)),
|
|
58023
58023
|
__metadata$h("design:paramtypes", [MatDialogRef, Object, ChangeDetectorRef,
|
|
@@ -80897,8 +80897,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
80897
80897
|
const systemDir$8 = '@stratusjs/angular';
|
|
80898
80898
|
const moduleName$9 = 'citationManager';
|
|
80899
80899
|
const parentModuleName$2 = 'froala/plugins';
|
|
80900
|
-
const min$
|
|
80901
|
-
const localDir$
|
|
80900
|
+
const min$c = !cookie('env') ? '.min' : '';
|
|
80901
|
+
const localDir$d = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$8}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
80902
80902
|
extend$1(FroalaEditor.POPUP_TEMPLATES, {
|
|
80903
80903
|
'citationManager.toolbar': '[_BUTTONS_]'
|
|
80904
80904
|
});
|
|
@@ -80909,7 +80909,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
80909
80909
|
let inputButton;
|
|
80910
80910
|
const debug = false;
|
|
80911
80911
|
function _init() {
|
|
80912
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
80912
|
+
Stratus.Internals.CssLoader(`${localDir$d}${parentModuleName$2}/${moduleName$9}${min$c}.css`);
|
|
80913
80913
|
inputButton = new InputButtonPlugin({
|
|
80914
80914
|
name: 'Citation Manager',
|
|
80915
80915
|
eventName: 'citation-input',
|
|
@@ -84650,8 +84650,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
84650
84650
|
const systemPackage = '@stratusjs/angular';
|
|
84651
84651
|
const froalaPackage = 'froala-editor';
|
|
84652
84652
|
const moduleName$8 = 'editor';
|
|
84653
|
-
const min$
|
|
84654
|
-
const localDir$
|
|
84653
|
+
const min$b = !cookie('env') ? '.min' : '';
|
|
84654
|
+
const localDir$c = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemPackage}/*`].replace(/[^\/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
84655
84655
|
const froalaDir = `${Stratus.BaseUrl}${boot.configuration.paths[froalaPackage].replace(/js\/[^\/]*$/, '')}`;
|
|
84656
84656
|
const has$2 = (object, path) => _.has(object, path) && !_.isEmpty(_.get(object, path));
|
|
84657
84657
|
let EditorComponent = exports('EditorComponent', class EditorComponent extends RootComponent {
|
|
@@ -85192,12 +85192,12 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
85192
85192
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$8)}_component_`);
|
|
85193
85193
|
Stratus.Instances[this.uid] = this;
|
|
85194
85194
|
Stratus.Internals.LoadCss([
|
|
85195
|
-
`${localDir$
|
|
85196
|
-
`${froalaDir}css/froala_editor.pkgd${min$
|
|
85197
|
-
`${froalaDir}css/themes/dark${min$
|
|
85198
|
-
`${froalaDir}css/third_party/embedly${min$
|
|
85199
|
-
`${froalaDir}css/third_party/font_awesome${min$
|
|
85200
|
-
`${froalaDir}css/third_party/image_tui${min$
|
|
85195
|
+
`${localDir$c}${moduleName$8}/${moduleName$8}.component${min$b}.css`,
|
|
85196
|
+
`${froalaDir}css/froala_editor.pkgd${min$b}.css`,
|
|
85197
|
+
`${froalaDir}css/themes/dark${min$b}.css`,
|
|
85198
|
+
`${froalaDir}css/third_party/embedly${min$b}.css`,
|
|
85199
|
+
`${froalaDir}css/third_party/font_awesome${min$b}.css`,
|
|
85200
|
+
`${froalaDir}css/third_party/image_tui${min$b}.css`,
|
|
85201
85201
|
]).then(() => {
|
|
85202
85202
|
this.styled = true;
|
|
85203
85203
|
this.refresh();
|
|
@@ -85600,7 +85600,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
85600
85600
|
exports('EditorComponent', EditorComponent = __decorate$k([
|
|
85601
85601
|
Component({
|
|
85602
85602
|
selector: `sa-${moduleName$8}`,
|
|
85603
|
-
templateUrl: `${localDir$
|
|
85603
|
+
templateUrl: `${localDir$c}/${moduleName$8}/${moduleName$8}.component${min$b}.html`,
|
|
85604
85604
|
}),
|
|
85605
85605
|
__metadata$g("design:paramtypes", [DomSanitizer,
|
|
85606
85606
|
ChangeDetectorRef,
|
|
@@ -122932,8 +122932,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
122932
122932
|
};
|
|
122933
122933
|
const systemDir$7 = '@stratusjs/angular';
|
|
122934
122934
|
const moduleName$7 = 'base';
|
|
122935
|
-
const min$
|
|
122936
|
-
const localDir$
|
|
122935
|
+
const min$a = !cookie('env') ? '.min' : '';
|
|
122936
|
+
const localDir$b = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$7}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
122937
122937
|
let BaseComponent = exports('BaseComponent', class BaseComponent extends RootComponent {
|
|
122938
122938
|
constructor(sanitizer, ref, elementRef) {
|
|
122939
122939
|
super();
|
|
@@ -123010,7 +123010,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123010
123010
|
exports('BaseComponent', BaseComponent = __decorate$h([
|
|
123011
123011
|
Component({
|
|
123012
123012
|
selector: 'sa-base',
|
|
123013
|
-
templateUrl: `${localDir$
|
|
123013
|
+
templateUrl: `${localDir$b}/${moduleName$7}/${moduleName$7}.component${min$a}.html`,
|
|
123014
123014
|
}),
|
|
123015
123015
|
__metadata$f("design:paramtypes", [DomSanitizer,
|
|
123016
123016
|
ChangeDetectorRef,
|
|
@@ -123031,8 +123031,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123031
123031
|
};
|
|
123032
123032
|
const systemDir$6 = '@stratusjs/angular';
|
|
123033
123033
|
const moduleName$6 = 'confirm-dialog';
|
|
123034
|
-
const min$
|
|
123035
|
-
const localDir$
|
|
123034
|
+
const min$9 = !cookie('env') ? '.min' : '';
|
|
123035
|
+
const localDir$a = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$6}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123036
123036
|
let ConfirmDialogComponent = exports('ConfirmDialogComponent', class ConfirmDialogComponent {
|
|
123037
123037
|
constructor(dialogRef, data) {
|
|
123038
123038
|
this.dialogRef = dialogRef;
|
|
@@ -123048,7 +123048,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123048
123048
|
exports('ConfirmDialogComponent', ConfirmDialogComponent = __decorate$g([
|
|
123049
123049
|
Component({
|
|
123050
123050
|
selector: `sa-${moduleName$6}`,
|
|
123051
|
-
templateUrl: `${localDir$
|
|
123051
|
+
templateUrl: `${localDir$a}/${moduleName$6}/${moduleName$6}.component${min$9}.html`,
|
|
123052
123052
|
}),
|
|
123053
123053
|
__param$3(1, Inject(MAT_DIALOG_DATA)),
|
|
123054
123054
|
__metadata$e("design:paramtypes", [MatDialogRef, Object])
|
|
@@ -123065,8 +123065,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123065
123065
|
};
|
|
123066
123066
|
const systemDir$5 = '@stratusjs/angular';
|
|
123067
123067
|
const moduleName$5 = 'media-selector';
|
|
123068
|
-
const min$
|
|
123069
|
-
const localDir$
|
|
123068
|
+
const min$8 = !cookie('env') ? '.min' : '';
|
|
123069
|
+
const localDir$9 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$5}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123070
123070
|
const has$1 = (object, path) => _.has(object, path) && !_.isEmpty(_.get(object, path));
|
|
123071
123071
|
let MediaSelectorComponent = exports('MediaSelectorComponent', class MediaSelectorComponent extends RootComponent {
|
|
123072
123072
|
constructor(iconRegistry, sanitizer, ref, elementRef, viewportRuler) {
|
|
@@ -123137,7 +123137,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123137
123137
|
media_selector_audio: `${Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-audio.svg`,
|
|
123138
123138
|
media_selector_document: `${Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-document.svg`
|
|
123139
123139
|
}, (value, key) => iconRegistry.addSvgIcon(key, sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key));
|
|
123140
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
123140
|
+
Stratus.Internals.CssLoader(`${localDir$9}${moduleName$5}/${moduleName$5}.component${min$8}.css`)
|
|
123141
123141
|
.then(() => {
|
|
123142
123142
|
this.styled = true;
|
|
123143
123143
|
this.refresh();
|
|
@@ -123435,7 +123435,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123435
123435
|
exports('MediaSelectorComponent', MediaSelectorComponent = __decorate$f([
|
|
123436
123436
|
Component({
|
|
123437
123437
|
selector: `sa-${moduleName$5}`,
|
|
123438
|
-
templateUrl: `${localDir$
|
|
123438
|
+
templateUrl: `${localDir$9}/${moduleName$5}/${moduleName$5}.component${min$8}.html`,
|
|
123439
123439
|
}),
|
|
123440
123440
|
__metadata$d("design:paramtypes", [MatIconRegistry,
|
|
123441
123441
|
DomSanitizer,
|
|
@@ -123465,8 +123465,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123465
123465
|
};
|
|
123466
123466
|
const systemDir$4 = '@stratusjs/angular';
|
|
123467
123467
|
const moduleName$4 = 'selector';
|
|
123468
|
-
const min$
|
|
123469
|
-
const localDir$
|
|
123468
|
+
const min$7 = !cookie('env') ? '.min' : '';
|
|
123469
|
+
const localDir$8 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$4}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123470
123470
|
const has = (object, path) => _.has(object, path) && !_.isEmpty(_.get(object, path));
|
|
123471
123471
|
let SelectorComponent = exports('SelectorComponent', class SelectorComponent extends RootComponent {
|
|
123472
123472
|
constructor(iconRegistry, sanitizer, ref, elementRef) {
|
|
@@ -123494,7 +123494,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123494
123494
|
selector_status: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`,
|
|
123495
123495
|
selector_edit: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`
|
|
123496
123496
|
}, (value, key) => iconRegistry.addSvgIcon(key, sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key));
|
|
123497
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
123497
|
+
Stratus.Internals.CssLoader(`${localDir$8}${moduleName$4}/${moduleName$4}.component${min$7}.css`)
|
|
123498
123498
|
.then(() => {
|
|
123499
123499
|
this.styled = true;
|
|
123500
123500
|
this.refresh();
|
|
@@ -123720,7 +123720,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123720
123720
|
exports('SelectorComponent', SelectorComponent = __decorate$e([
|
|
123721
123721
|
Component({
|
|
123722
123722
|
selector: `sa-${moduleName$4}`,
|
|
123723
|
-
templateUrl: `${localDir$
|
|
123723
|
+
templateUrl: `${localDir$8}/${moduleName$4}/${moduleName$4}.component${min$7}.html`,
|
|
123724
123724
|
}),
|
|
123725
123725
|
__metadata$c("design:paramtypes", [MatIconRegistry,
|
|
123726
123726
|
DomSanitizer,
|
|
@@ -123751,8 +123751,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123751
123751
|
};
|
|
123752
123752
|
const systemDir$3 = '@stratusjs/angular';
|
|
123753
123753
|
const moduleName$3 = 'tree';
|
|
123754
|
-
const min$
|
|
123755
|
-
const localDir$
|
|
123754
|
+
const min$6 = !cookie('env') ? '.min' : '';
|
|
123755
|
+
const localDir$7 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$3}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123756
123756
|
let TreeComponent = exports('TreeComponent', class TreeComponent extends RootComponent {
|
|
123757
123757
|
constructor(iconRegistry, sanitizer, backend, ref, elementRef, document) {
|
|
123758
123758
|
super();
|
|
@@ -123788,7 +123788,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123788
123788
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$3)}_component_`);
|
|
123789
123789
|
Stratus.Instances[this.uid] = this;
|
|
123790
123790
|
this.hydrate(this.elementRef, this.sanitizer, ["title", "uid", "isInitialized", "isDestroyed", "isStyled", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "_", "Stratus", "registry", "fetched", "data", "collection", "model", "dataSub", "onChange", "subscriber", "unsettled", "svgIcons", "isSingleClick", "dblClickWait", "dropLists", "dropListIdMap", "dropListMap", "expandedNodeSet", "dragging", "expandTimeout", "expandDelay", "dropData", "cdkDropListSortingDisabled", "dropDebug", "tree", "treeMap", "metaMap", "dataSource", "treeControl", "iconRegistry", "sanitizer", "backend", "ref", "elementRef", "document", "ngOnInit", "ngOnDestroy", "refresh", "remove", "removeNode", "nodeIsEqual", "fetchData", "dataDefer", "dataRef", "trackDropLists", "setExpanded", "setExpandedClick", "setExpandedDblClick", "onDragDrop", "onDragMove", "showDragData", "clearDragData", "buildNodePatch", "getSvg", "addSvgIcon", "hydrate", "disableRefresh", "stagger", "reloading"]);
|
|
123791
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
123791
|
+
Stratus.Internals.CssLoader(`${localDir$7}/${moduleName$3}/${moduleName$3}.component${min$6}.css`)
|
|
123792
123792
|
.then(() => {
|
|
123793
123793
|
this.isStyled = true;
|
|
123794
123794
|
this.refresh();
|
|
@@ -124252,7 +124252,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124252
124252
|
exports('TreeComponent', TreeComponent = __decorate$d([
|
|
124253
124253
|
Component({
|
|
124254
124254
|
selector: `sa-${moduleName$3}`,
|
|
124255
|
-
templateUrl: `${localDir$
|
|
124255
|
+
templateUrl: `${localDir$7}/${moduleName$3}/${moduleName$3}.component${min$6}.html`,
|
|
124256
124256
|
}),
|
|
124257
124257
|
__param$2(5, Inject(DOCUMENT)),
|
|
124258
124258
|
__metadata$b("design:paramtypes", [MatIconRegistry,
|
|
@@ -124278,8 +124278,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124278
124278
|
const systemDir$2 = '@stratusjs/angular';
|
|
124279
124279
|
const moduleName$2 = 'tree-dialog';
|
|
124280
124280
|
const parentModuleName$1 = 'tree';
|
|
124281
|
-
const min$
|
|
124282
|
-
const localDir$
|
|
124281
|
+
const min$5 = !cookie('env') ? '.min' : '';
|
|
124282
|
+
const localDir$6 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$2}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
124283
124283
|
let TreeDialogComponent = exports('TreeDialogComponent', class TreeDialogComponent extends ResponsiveComponent {
|
|
124284
124284
|
constructor(dialogRef, data, fb, ref) {
|
|
124285
124285
|
super();
|
|
@@ -124303,7 +124303,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124303
124303
|
ngOnInit() {
|
|
124304
124304
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$2)}_component_`);
|
|
124305
124305
|
Stratus.Instances[this.uid] = this;
|
|
124306
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
124306
|
+
Stratus.Internals.CssLoader(`${localDir$6}/${parentModuleName$1}/${moduleName$2}.component${min$5}.css`)
|
|
124307
124307
|
.then(() => {
|
|
124308
124308
|
this.isStyled = true;
|
|
124309
124309
|
})
|
|
@@ -124453,7 +124453,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124453
124453
|
exports('TreeDialogComponent', TreeDialogComponent = __decorate$c([
|
|
124454
124454
|
Component({
|
|
124455
124455
|
selector: `sa-${moduleName$2}`,
|
|
124456
|
-
templateUrl: `${localDir$
|
|
124456
|
+
templateUrl: `${localDir$6}/${parentModuleName$1}/${moduleName$2}.component${min$5}.html`,
|
|
124457
124457
|
}),
|
|
124458
124458
|
__param$1(1, Inject(MAT_DIALOG_DATA)),
|
|
124459
124459
|
__metadata$a("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -124472,8 +124472,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124472
124472
|
const systemDir$1 = '@stratusjs/angular';
|
|
124473
124473
|
const moduleName$1 = 'tree-node';
|
|
124474
124474
|
const parentModuleName = 'tree';
|
|
124475
|
-
const min$
|
|
124476
|
-
const localDir$
|
|
124475
|
+
const min$4 = !cookie('env') ? '.min' : '';
|
|
124476
|
+
const localDir$5 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$1}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
124477
124477
|
let TreeNodeComponent = exports('TreeNodeComponent', class TreeNodeComponent extends ResponsiveComponent {
|
|
124478
124478
|
constructor(dialog, ref) {
|
|
124479
124479
|
super();
|
|
@@ -124491,7 +124491,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124491
124491
|
ngOnInit() {
|
|
124492
124492
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$1)}_component_`);
|
|
124493
124493
|
Stratus.Instances[this.uid] = this;
|
|
124494
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
124494
|
+
Stratus.Internals.CssLoader(`${localDir$5}/${parentModuleName}/${moduleName$1}.component${min$4}.css`)
|
|
124495
124495
|
.then(() => {
|
|
124496
124496
|
this.isStyled = true;
|
|
124497
124497
|
this.refresh();
|
|
@@ -124702,7 +124702,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124702
124702
|
exports('TreeNodeComponent', TreeNodeComponent = __decorate$b([
|
|
124703
124703
|
Component({
|
|
124704
124704
|
selector: `sa-${moduleName$1}`,
|
|
124705
|
-
templateUrl: `${localDir$
|
|
124705
|
+
templateUrl: `${localDir$5}/${parentModuleName}/${moduleName$1}.component${min$4}.html`,
|
|
124706
124706
|
}),
|
|
124707
124707
|
__metadata$9("design:paramtypes", [MatDialog,
|
|
124708
124708
|
ChangeDetectorRef])
|
|
@@ -127457,7 +127457,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
127457
127457
|
};
|
|
127458
127458
|
const packageName$6 = 'map';
|
|
127459
127459
|
const systemDir = `@stratusjs/${packageName$6}`;
|
|
127460
|
-
const localDir$
|
|
127460
|
+
const localDir$4 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/angular\/dist\/$/, 'map/src/')}`;
|
|
127461
127461
|
const moduleName = 'map';
|
|
127462
127462
|
const devGoogleMapsKey = 'AIzaSyBAyMH-A99yD5fHQPz7uzqk8glNJYGEqus';
|
|
127463
127463
|
class Watcher {
|
|
@@ -127555,7 +127555,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
127555
127555
|
this.highestMarkerZIndex = 0;
|
|
127556
127556
|
this.uid = safeUniqueId('sa', moduleName, 'component');
|
|
127557
127557
|
Stratus.Instances[this.uid] = this;
|
|
127558
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
127558
|
+
Stratus.Internals.CssLoader(`${localDir$4}/${moduleName}.component.css`)
|
|
127559
127559
|
.then(() => {
|
|
127560
127560
|
this.styled = true;
|
|
127561
127561
|
})
|
|
@@ -128016,7 +128016,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128016
128016
|
MapComponent = __decorate$a([
|
|
128017
128017
|
Component({
|
|
128018
128018
|
selector: `sa-${moduleName}`,
|
|
128019
|
-
templateUrl: `${localDir$
|
|
128019
|
+
templateUrl: `${localDir$4}/${moduleName}.component.html`
|
|
128020
128020
|
}),
|
|
128021
128021
|
__metadata$8("design:paramtypes", [KeyValueDiffers,
|
|
128022
128022
|
Window,
|
|
@@ -128373,10 +128373,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128373
128373
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128374
128374
|
});
|
|
128375
128375
|
};
|
|
128376
|
-
const min$
|
|
128376
|
+
const min$3 = !cookie('env') ? '.min' : '';
|
|
128377
128377
|
const packageName$5 = 'stripe';
|
|
128378
128378
|
const componentName$5 = 'payment-method';
|
|
128379
|
-
const localDir$
|
|
128379
|
+
const localDir$3 = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$5}/src/`;
|
|
128380
128380
|
let StripePaymentMethodComponent = class StripePaymentMethodComponent extends StripeComponent {
|
|
128381
128381
|
constructor(elementRef, sanitizer, Stripe, dialogRef, dialogData) {
|
|
128382
128382
|
super();
|
|
@@ -128399,7 +128399,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128399
128399
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
128400
128400
|
Stratus.Instances[this.uid] = this;
|
|
128401
128401
|
this.elementId = this.elementId || this.uid;
|
|
128402
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
128402
|
+
Stratus.Internals.CssLoader(`${localDir$3}${componentName$5}.component${min$3}.css`)
|
|
128403
128403
|
.then(() => {
|
|
128404
128404
|
this.styled = true;
|
|
128405
128405
|
})
|
|
@@ -128556,7 +128556,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128556
128556
|
StripePaymentMethodComponent = __decorate$7([
|
|
128557
128557
|
Component({
|
|
128558
128558
|
selector: `sa-${packageName$5}-${componentName$5}`,
|
|
128559
|
-
templateUrl: `${localDir$
|
|
128559
|
+
templateUrl: `${localDir$3}${componentName$5}.component${min$3}.html`,
|
|
128560
128560
|
}),
|
|
128561
128561
|
__param(3, Optional()),
|
|
128562
128562
|
__param(4, Optional()),
|
|
@@ -128585,10 +128585,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128585
128585
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128586
128586
|
});
|
|
128587
128587
|
};
|
|
128588
|
-
const min$
|
|
128588
|
+
const min$2 = !cookie('env') ? '.min' : '';
|
|
128589
128589
|
const packageName$4 = 'stripe';
|
|
128590
128590
|
const componentName$4 = 'payment-method-item';
|
|
128591
|
-
const localDir$
|
|
128591
|
+
const localDir$2 = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$4}/src/`;
|
|
128592
128592
|
let StripePaymentMethodItemComponent = class StripePaymentMethodItemComponent extends StripeComponent {
|
|
128593
128593
|
constructor(dialog, elementRef, sanitizer, Stripe) {
|
|
128594
128594
|
super();
|
|
@@ -128598,11 +128598,12 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128598
128598
|
this.Stripe = Stripe;
|
|
128599
128599
|
this.title = `${packageName$4}_${componentName$4}_component`;
|
|
128600
128600
|
this.editable = false;
|
|
128601
|
+
this.templateStyle = 'default';
|
|
128601
128602
|
this.urlRoot = '/Api';
|
|
128602
128603
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
128603
128604
|
Stratus.Instances[this.uid] = this;
|
|
128604
128605
|
this.elementId = this.elementId || this.uid;
|
|
128605
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
128606
|
+
Stratus.Internals.CssLoader(`${localDir$2}${componentName$4}.component${min$2}.css`)
|
|
128606
128607
|
.then(() => {
|
|
128607
128608
|
this.styled = true;
|
|
128608
128609
|
})
|
|
@@ -128610,7 +128611,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128610
128611
|
console.error('CSS Failed to load for Component:', this);
|
|
128611
128612
|
this.styled = false;
|
|
128612
128613
|
});
|
|
128613
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "model", "editable", "urlRoot", "dialog", "elementRef", "sanitizer", "Stripe", "ngOnInit", "getCardLogoUrl", "isExpired", "isExpiring", "deletePM", "deletePMConfirmation", "uid", "elementId", "styled", "initialized", "hydrate", "ref", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
128614
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "model", "editable", "templateStyle", "urlRoot", "dialog", "elementRef", "sanitizer", "Stripe", "ngOnInit", "getCardLogoUrl", "isExpired", "isExpiring", "deletePM", "deletePMConfirmation", "uid", "elementId", "styled", "initialized", "hydrate", "ref", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
128614
128615
|
}
|
|
128615
128616
|
ngOnInit() {
|
|
128616
128617
|
return __awaiter$4(this, void 0, void 0, function* () {
|
|
@@ -128621,7 +128622,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128621
128622
|
});
|
|
128622
128623
|
}
|
|
128623
128624
|
getCardLogoUrl(brand) {
|
|
128624
|
-
return `${localDir$
|
|
128625
|
+
return `${localDir$2}/images/card/${brand}.png`;
|
|
128625
128626
|
}
|
|
128626
128627
|
isExpired() {
|
|
128627
128628
|
if (this.model.pending) {
|
|
@@ -128689,6 +128690,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128689
128690
|
Input(),
|
|
128690
128691
|
__metadata$5("design:type", Object)
|
|
128691
128692
|
], StripePaymentMethodItemComponent.prototype, "editable", void 0);
|
|
128693
|
+
__decorate$6([
|
|
128694
|
+
Input(),
|
|
128695
|
+
__metadata$5("design:type", Object)
|
|
128696
|
+
], StripePaymentMethodItemComponent.prototype, "templateStyle", void 0);
|
|
128692
128697
|
__decorate$6([
|
|
128693
128698
|
Input(),
|
|
128694
128699
|
__metadata$5("design:type", Object)
|
|
@@ -128696,7 +128701,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128696
128701
|
StripePaymentMethodItemComponent = __decorate$6([
|
|
128697
128702
|
Component({
|
|
128698
128703
|
selector: `sa-${packageName$4}-${componentName$4}`,
|
|
128699
|
-
templateUrl: `${localDir$
|
|
128704
|
+
templateUrl: `${localDir$2}${componentName$4}.component${min$2}.html`,
|
|
128700
128705
|
}),
|
|
128701
128706
|
__metadata$5("design:paramtypes", [MatDialog,
|
|
128702
128707
|
ElementRef,
|
|
@@ -128722,28 +128727,21 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128722
128727
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128723
128728
|
});
|
|
128724
128729
|
};
|
|
128725
|
-
|
|
128730
|
+
!cookie('env') ? '.min' : '';
|
|
128726
128731
|
const packageName$3 = 'stripe';
|
|
128727
128732
|
const componentName$3 = 'payment-method-item-display';
|
|
128728
|
-
|
|
128733
|
+
`${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$3}/src/`;
|
|
128729
128734
|
let StripePaymentMethodItemDisplayComponent = class StripePaymentMethodItemDisplayComponent extends StripeComponent {
|
|
128730
128735
|
constructor(elementRef, sanitizer) {
|
|
128731
128736
|
super();
|
|
128732
128737
|
this.elementRef = elementRef;
|
|
128733
128738
|
this.sanitizer = sanitizer;
|
|
128734
128739
|
this.title = `${packageName$3}_${componentName$3}_component`;
|
|
128740
|
+
this.templateStyle = 'default';
|
|
128735
128741
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
128736
128742
|
Stratus.Instances[this.uid] = this;
|
|
128737
128743
|
this.elementId = this.elementId || this.uid;
|
|
128738
|
-
|
|
128739
|
-
.then(() => {
|
|
128740
|
-
this.styled = true;
|
|
128741
|
-
})
|
|
128742
|
-
.catch(() => {
|
|
128743
|
-
console.error('CSS Failed to load for Component:', this);
|
|
128744
|
-
this.styled = false;
|
|
128745
|
-
});
|
|
128746
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "model", "name", "brand", "last4", "expMonth", "expYear", "elementRef", "sanitizer", "ngOnInit", "uid", "elementId", "styled", "initialized", "hydrate", "ref", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
128744
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "model", "name", "brand", "last4", "expMonth", "expYear", "templateStyle", "elementRef", "sanitizer", "ngOnInit", "uid", "elementId", "styled", "initialized", "hydrate", "ref", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
128747
128745
|
}
|
|
128748
128746
|
ngOnInit() {
|
|
128749
128747
|
return __awaiter$3(this, void 0, void 0, function* () {
|
|
@@ -128804,10 +128802,14 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128804
128802
|
Input(),
|
|
128805
128803
|
__metadata$4("design:type", Number)
|
|
128806
128804
|
], StripePaymentMethodItemDisplayComponent.prototype, "expYear", void 0);
|
|
128805
|
+
__decorate$5([
|
|
128806
|
+
Input(),
|
|
128807
|
+
__metadata$4("design:type", Object)
|
|
128808
|
+
], StripePaymentMethodItemDisplayComponent.prototype, "templateStyle", void 0);
|
|
128807
128809
|
StripePaymentMethodItemDisplayComponent = __decorate$5([
|
|
128808
128810
|
Component({
|
|
128809
128811
|
selector: `sa-${packageName$3}-${componentName$3}`,
|
|
128810
|
-
template: '<sa-stripe-payment-method-item *ngIf="initialized" [(model)]="model" [editable]="false"></sa-stripe-payment-method-item>',
|
|
128812
|
+
template: '<sa-stripe-payment-method-item *ngIf="initialized" [(model)]="model" [editable]="false" [templateStyle]="templateStyle"></sa-stripe-payment-method-item>',
|
|
128811
128813
|
}),
|
|
128812
128814
|
__metadata$4("design:paramtypes", [ElementRef,
|
|
128813
128815
|
DomSanitizer])
|
|
@@ -129008,6 +129010,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129008
129010
|
this.paymentMethodApiPath = 'PaymentMethod';
|
|
129009
129011
|
this.addCardButtonText = 'Add Payment Method';
|
|
129010
129012
|
this.selectCardButtonText = 'Select Default Payment Method';
|
|
129013
|
+
this.selectedTemplateStyle = 'default';
|
|
129011
129014
|
this.disabled = false;
|
|
129012
129015
|
this.defaultBillingInfo = { address: {} };
|
|
129013
129016
|
this.fieldName = 'paymentSelection';
|
|
@@ -129030,7 +129033,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129030
129033
|
this.styled = false;
|
|
129031
129034
|
this.refresh().then();
|
|
129032
129035
|
});
|
|
129033
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "registryModel", "paymentMethodApiPath", "addCardButtonText", "selectCardButtonText", "disabled", "property", "detailedBillingInfo", "defaultBillingName", "defaultBillingEmail", "defaultBillingPhone", "defaultBillingZip", "defaultBillingState", "defaultBillingCity", "defaultBillingAddress1", "defaultBillingAddress2", "defaultBillingInfo", "fieldName", "fieldNameId", "registry", "fetched", "model", "dataSub", "subscriber", "form", "paymentSelect", "elementRef", "fb", "ref", "sanitizer", "Stripe", "ngOnInit", "valueChanged", "normalizeOut", "normalizeIn", "fetchData", "objectComparisonFunction", "dataDefer", "dataRef", "handleObservableError", "isPMExpired", "selectorListClose", "selectorListOpen", "collection", "uid", "elementId", "styled", "initialized", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
129036
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "registryModel", "paymentMethodApiPath", "addCardButtonText", "selectCardButtonText", "selectedTemplateStyle", "disabled", "property", "detailedBillingInfo", "defaultBillingName", "defaultBillingEmail", "defaultBillingPhone", "defaultBillingZip", "defaultBillingState", "defaultBillingCity", "defaultBillingAddress1", "defaultBillingAddress2", "defaultBillingInfo", "fieldName", "fieldNameId", "registry", "fetched", "model", "dataSub", "subscriber", "form", "paymentSelect", "elementRef", "fb", "ref", "sanitizer", "Stripe", "ngOnInit", "valueChanged", "normalizeOut", "normalizeIn", "fetchData", "objectComparisonFunction", "dataDefer", "dataRef", "handleObservableError", "isPMExpired", "selectorListClose", "selectorListOpen", "collection", "uid", "elementId", "styled", "initialized", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
129034
129037
|
const apiOptions = {
|
|
129035
129038
|
autoSave: false,
|
|
129036
129039
|
target: this.paymentMethodApiPath,
|
|
@@ -129267,6 +129270,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129267
129270
|
Input(),
|
|
129268
129271
|
__metadata$2("design:type", String)
|
|
129269
129272
|
], StripePaymentMethodSelectorComponent.prototype, "selectCardButtonText", void 0);
|
|
129273
|
+
__decorate$3([
|
|
129274
|
+
Input(),
|
|
129275
|
+
__metadata$2("design:type", Object)
|
|
129276
|
+
], StripePaymentMethodSelectorComponent.prototype, "selectedTemplateStyle", void 0);
|
|
129270
129277
|
__decorate$3([
|
|
129271
129278
|
Input(),
|
|
129272
129279
|
__metadata$2("design:type", Object)
|
|
@@ -161098,1228 +161105,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
161098
161105
|
})
|
|
161099
161106
|
.catch(err => console.error('@stratusjs/angular failed to initialize!', err));
|
|
161100
161107
|
|
|
161101
|
-
System.register(["quill"], function (exports_1, context_1) {
|
|
161102
|
-
var quill_1, debug, Logger, QuillHtmlEditPlugin;
|
|
161103
|
-
context_1 && context_1.id;
|
|
161104
|
-
function $create(elName) {
|
|
161105
|
-
return document.createElement(elName);
|
|
161106
|
-
}
|
|
161107
|
-
function $setAttr(el, key, value) {
|
|
161108
|
-
return el.setAttribute(key, value);
|
|
161109
|
-
}
|
|
161110
|
-
function launchPopupEditor(quill, options) {
|
|
161111
|
-
const htmlFromEditor = quill.container.querySelector('.ql-editor').innerHTML;
|
|
161112
|
-
const popupContainer = $create('div');
|
|
161113
|
-
const overlayContainer = $create('div');
|
|
161114
|
-
const msg = options.msg || 'Edit HTML here, when you click "OK" the quill editor\'s contents will be replaced';
|
|
161115
|
-
const cancelText = options.cancelText || 'Cancel';
|
|
161116
|
-
const okText = options.okText || 'Ok';
|
|
161117
|
-
$setAttr(overlayContainer, 'class', 'ql-html-overlayContainer');
|
|
161118
|
-
$setAttr(popupContainer, 'class', 'ql-html-popupContainer');
|
|
161119
|
-
const popupTitle = $create('i');
|
|
161120
|
-
$setAttr(popupTitle, 'class', 'ql-html-popupTitle');
|
|
161121
|
-
popupTitle.innerText = msg;
|
|
161122
|
-
const textContainer = $create('div');
|
|
161123
|
-
textContainer.appendChild(popupTitle);
|
|
161124
|
-
$setAttr(textContainer, 'class', 'ql-html-textContainer');
|
|
161125
|
-
const textArea = $create('textarea');
|
|
161126
|
-
$setAttr(textArea, 'class', 'ql-html-textArea');
|
|
161127
|
-
textArea.value = formatHTML(htmlFromEditor);
|
|
161128
|
-
const buttonCancel = $create('button');
|
|
161129
|
-
buttonCancel.innerHTML = cancelText;
|
|
161130
|
-
$setAttr(buttonCancel, 'class', 'ql-html-buttonCancel');
|
|
161131
|
-
const buttonOk = $create('button');
|
|
161132
|
-
buttonOk.innerHTML = okText;
|
|
161133
|
-
const buttonGroup = $create('div');
|
|
161134
|
-
$setAttr(buttonGroup, 'class', 'ql-html-buttonGroup');
|
|
161135
|
-
buttonGroup.appendChild(buttonCancel);
|
|
161136
|
-
buttonGroup.appendChild(buttonOk);
|
|
161137
|
-
textContainer.appendChild(textArea);
|
|
161138
|
-
textContainer.appendChild(buttonGroup);
|
|
161139
|
-
popupContainer.appendChild(textContainer);
|
|
161140
|
-
overlayContainer.appendChild(popupContainer);
|
|
161141
|
-
document.body.appendChild(overlayContainer);
|
|
161142
|
-
buttonCancel.onclick = () => {
|
|
161143
|
-
document.body.removeChild(overlayContainer);
|
|
161144
|
-
};
|
|
161145
|
-
overlayContainer.onclick = buttonCancel.onclick;
|
|
161146
|
-
popupContainer.onclick = (e) => {
|
|
161147
|
-
e.preventDefault();
|
|
161148
|
-
e.stopPropagation();
|
|
161149
|
-
};
|
|
161150
|
-
buttonOk.onclick = () => {
|
|
161151
|
-
const output = textArea.value.split(/\r?\n/g).map((el) => el.trim());
|
|
161152
|
-
const noNewlines = output.join('');
|
|
161153
|
-
quill.container.querySelector('.ql-editor').innerHTML = noNewlines;
|
|
161154
|
-
document.body.removeChild(overlayContainer);
|
|
161155
|
-
};
|
|
161156
|
-
}
|
|
161157
|
-
function formatHTML(code) {
|
|
161158
|
-
const whitespace = ' '.repeat(2);
|
|
161159
|
-
let currentIndent = 0;
|
|
161160
|
-
const newlineChar = '\n';
|
|
161161
|
-
let char = null;
|
|
161162
|
-
let nextChar = null;
|
|
161163
|
-
let result = '';
|
|
161164
|
-
for (let pos = 0; pos <= code.length; pos++) {
|
|
161165
|
-
char = code.substr(pos, 1);
|
|
161166
|
-
nextChar = code.substr(pos + 1, 1);
|
|
161167
|
-
const isBrTag = code.substr(pos, 4) === '<br>';
|
|
161168
|
-
const isOpeningTag = char === '<' && nextChar !== '/' && !isBrTag;
|
|
161169
|
-
const isClosingTag = char === '<' && nextChar === '/' && !isBrTag;
|
|
161170
|
-
if (isBrTag) {
|
|
161171
|
-
result += newlineChar;
|
|
161172
|
-
currentIndent--;
|
|
161173
|
-
pos += 4;
|
|
161174
|
-
}
|
|
161175
|
-
if (isOpeningTag) {
|
|
161176
|
-
result += newlineChar + whitespace.repeat(currentIndent);
|
|
161177
|
-
currentIndent++;
|
|
161178
|
-
}
|
|
161179
|
-
else if (isClosingTag) {
|
|
161180
|
-
if (--currentIndent < 0) {
|
|
161181
|
-
currentIndent = 0;
|
|
161182
|
-
}
|
|
161183
|
-
result += newlineChar + whitespace.repeat(currentIndent);
|
|
161184
|
-
}
|
|
161185
|
-
else if (char === ' ' && nextChar === ' ') {
|
|
161186
|
-
char = '';
|
|
161187
|
-
}
|
|
161188
|
-
else if (char === newlineChar) {
|
|
161189
|
-
if (code.substr(pos, code.substr(pos).indexOf('<')).trim() === '') {
|
|
161190
|
-
char = '';
|
|
161191
|
-
}
|
|
161192
|
-
}
|
|
161193
|
-
result += char;
|
|
161194
|
-
}
|
|
161195
|
-
Logger.log('formatHTML', {
|
|
161196
|
-
before: code,
|
|
161197
|
-
after: result
|
|
161198
|
-
});
|
|
161199
|
-
return result;
|
|
161200
|
-
}
|
|
161201
|
-
return {
|
|
161202
|
-
setters: [
|
|
161203
|
-
function (quill_1_1) {
|
|
161204
|
-
quill_1 = quill_1_1;
|
|
161205
|
-
}
|
|
161206
|
-
],
|
|
161207
|
-
execute: function () {
|
|
161208
|
-
debug = false;
|
|
161209
|
-
Logger = {
|
|
161210
|
-
prefixString() {
|
|
161211
|
-
return `</> quill-html-edit-button: `;
|
|
161212
|
-
},
|
|
161213
|
-
get log() {
|
|
161214
|
-
if (!debug) {
|
|
161215
|
-
return () => { };
|
|
161216
|
-
}
|
|
161217
|
-
const boundLogFn = console.log.bind(console, this.prefixString());
|
|
161218
|
-
return boundLogFn;
|
|
161219
|
-
}
|
|
161220
|
-
};
|
|
161221
|
-
QuillHtmlEditPlugin = class QuillHtmlEditPlugin {
|
|
161222
|
-
constructor(quill, options) {
|
|
161223
|
-
debug = options && options.debug;
|
|
161224
|
-
Logger.log('logging enabled');
|
|
161225
|
-
const toolbarModule = quill.getModule('toolbar');
|
|
161226
|
-
if (!toolbarModule) {
|
|
161227
|
-
throw new Error('quill.htmlEditButton requires the "toolbar" module to be included too');
|
|
161228
|
-
}
|
|
161229
|
-
this.registerDivModule();
|
|
161230
|
-
const toolbarEl = toolbarModule.container;
|
|
161231
|
-
const buttonContainer = $create('span');
|
|
161232
|
-
$setAttr(buttonContainer, 'class', 'ql-formats');
|
|
161233
|
-
const button = $create('button');
|
|
161234
|
-
button.innerHTML = options.buttonHTML || '<>';
|
|
161235
|
-
button.title = options.buttonTitle || 'Show HTML source';
|
|
161236
|
-
button.onclick = (e) => {
|
|
161237
|
-
e.preventDefault();
|
|
161238
|
-
launchPopupEditor(quill, options);
|
|
161239
|
-
};
|
|
161240
|
-
buttonContainer.appendChild(button);
|
|
161241
|
-
toolbarEl.appendChild(buttonContainer);
|
|
161242
|
-
}
|
|
161243
|
-
registerDivModule() {
|
|
161244
|
-
const Block = quill_1.default.import('blots/block');
|
|
161245
|
-
class Div extends Block {
|
|
161246
|
-
}
|
|
161247
|
-
Div.tagName = 'div';
|
|
161248
|
-
Div.blotName = 'div';
|
|
161249
|
-
Div.allowedChildren = Block.allowedChildren;
|
|
161250
|
-
Div.allowedChildren.push(Block);
|
|
161251
|
-
quill_1.default.register(Div);
|
|
161252
|
-
}
|
|
161253
|
-
};
|
|
161254
|
-
exports_1("QuillHtmlEditPlugin", QuillHtmlEditPlugin);
|
|
161255
|
-
exports_1("default", QuillHtmlEditPlugin);
|
|
161256
|
-
}
|
|
161257
|
-
};
|
|
161258
|
-
});
|
|
161259
|
-
|
|
161260
|
-
System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
|
|
161261
|
-
var quill_1, environment_1, Break, Embed, QuillBreak;
|
|
161262
|
-
context_1 && context_1.id;
|
|
161263
|
-
return {
|
|
161264
|
-
setters: [
|
|
161265
|
-
function (quill_1_1) {
|
|
161266
|
-
quill_1 = quill_1_1;
|
|
161267
|
-
},
|
|
161268
|
-
function (environment_1_1) {
|
|
161269
|
-
environment_1 = environment_1_1;
|
|
161270
|
-
}
|
|
161271
|
-
],
|
|
161272
|
-
execute: function () {
|
|
161273
|
-
Break = quill_1.default.import('blots/break');
|
|
161274
|
-
Embed = quill_1.default.import('blots/embed');
|
|
161275
|
-
QuillBreak = class QuillBreak extends Break {
|
|
161276
|
-
length() {
|
|
161277
|
-
return 1;
|
|
161278
|
-
}
|
|
161279
|
-
value() {
|
|
161280
|
-
return '\n';
|
|
161281
|
-
}
|
|
161282
|
-
insertInto(parent, ref) {
|
|
161283
|
-
if (environment_1.cookie('env')) {
|
|
161284
|
-
console.log('insertInto:', parent, ref);
|
|
161285
|
-
}
|
|
161286
|
-
Embed.prototype.insertInto.call(this, parent, ref);
|
|
161287
|
-
}
|
|
161288
|
-
};
|
|
161289
|
-
exports_1("QuillBreak", QuillBreak);
|
|
161290
|
-
QuillBreak.blotName = 'break';
|
|
161291
|
-
QuillBreak.tagName = 'BR';
|
|
161292
|
-
}
|
|
161293
|
-
};
|
|
161294
|
-
});
|
|
161295
|
-
|
|
161296
|
-
System.register(["quill"], function (exports_1, context_1) {
|
|
161297
|
-
var quill_1, BaseImage, ATTRIBUTES, QuillImageFormatPlugin;
|
|
161298
|
-
context_1 && context_1.id;
|
|
161299
|
-
return {
|
|
161300
|
-
setters: [
|
|
161301
|
-
function (quill_1_1) {
|
|
161302
|
-
quill_1 = quill_1_1;
|
|
161303
|
-
}
|
|
161304
|
-
],
|
|
161305
|
-
execute: function () {
|
|
161306
|
-
BaseImage = quill_1.default.import('formats/image');
|
|
161307
|
-
ATTRIBUTES = [
|
|
161308
|
-
'alt',
|
|
161309
|
-
'height',
|
|
161310
|
-
'width',
|
|
161311
|
-
'stratus-src',
|
|
161312
|
-
'stratusSrc'
|
|
161313
|
-
];
|
|
161314
|
-
QuillImageFormatPlugin = class QuillImageFormatPlugin extends BaseImage {
|
|
161315
|
-
constructor() {
|
|
161316
|
-
super(...arguments);
|
|
161317
|
-
this.blotName = 'imageCustom';
|
|
161318
|
-
this.tagName = 'IMG';
|
|
161319
|
-
}
|
|
161320
|
-
format(name, value) {
|
|
161321
|
-
console.log('format:', name, value, this.domNode.getAttribute('src'));
|
|
161322
|
-
if (ATTRIBUTES.indexOf(name) === -1) {
|
|
161323
|
-
super.format(name, value);
|
|
161324
|
-
return;
|
|
161325
|
-
}
|
|
161326
|
-
if (!value) {
|
|
161327
|
-
this.domNode.removeAttribute(name);
|
|
161328
|
-
return;
|
|
161329
|
-
}
|
|
161330
|
-
if (name === 'stratus-src') {
|
|
161331
|
-
console.log('stratus-src:', value);
|
|
161332
|
-
}
|
|
161333
|
-
if (name === 'stratusSrc') {
|
|
161334
|
-
console.log('stratusSrc:', value);
|
|
161335
|
-
}
|
|
161336
|
-
this.domNode.setAttribute(name, value);
|
|
161337
|
-
}
|
|
161338
|
-
};
|
|
161339
|
-
exports_1("QuillImageFormatPlugin", QuillImageFormatPlugin);
|
|
161340
|
-
}
|
|
161341
|
-
};
|
|
161342
|
-
});
|
|
161343
|
-
|
|
161344
|
-
System.register(["@stratusjs/runtime/stratus", "lodash", "quill"], function (exports_1, context_1) {
|
|
161345
|
-
var stratus_1, lodash_1, quill_1, QuillInputButtonPlugin;
|
|
161346
|
-
context_1 && context_1.id;
|
|
161347
|
-
return {
|
|
161348
|
-
setters: [
|
|
161349
|
-
function (stratus_1_1) {
|
|
161350
|
-
stratus_1 = stratus_1_1;
|
|
161351
|
-
},
|
|
161352
|
-
function (lodash_1_1) {
|
|
161353
|
-
lodash_1 = lodash_1_1;
|
|
161354
|
-
},
|
|
161355
|
-
function (quill_1_1) {
|
|
161356
|
-
quill_1 = quill_1_1;
|
|
161357
|
-
}
|
|
161358
|
-
],
|
|
161359
|
-
execute: function () {
|
|
161360
|
-
QuillInputButtonPlugin = class QuillInputButtonPlugin {
|
|
161361
|
-
constructor(quill, options) {
|
|
161362
|
-
this.debug = false;
|
|
161363
|
-
this.buttonHTML = '<i class="fas fa-carrot"></i>';
|
|
161364
|
-
this.buttonTitle = 'Input Button';
|
|
161365
|
-
this.name = 'inputButton';
|
|
161366
|
-
this.eventName = 'input-button';
|
|
161367
|
-
this.uid = lodash_1.default.uniqueId(`quill_input_button_`);
|
|
161368
|
-
stratus_1.Stratus.Instances[this.uid] = this;
|
|
161369
|
-
this.debug = options && options.debug;
|
|
161370
|
-
if (!options || typeof options !== 'object') {
|
|
161371
|
-
options = {};
|
|
161372
|
-
}
|
|
161373
|
-
this.buttonHTML = options.buttonHTML || this.buttonHTML;
|
|
161374
|
-
this.buttonTitle = options.buttonTitle || this.buttonTitle;
|
|
161375
|
-
this.name = options.name || this.name;
|
|
161376
|
-
this.eventName = options.eventName || this.eventName;
|
|
161377
|
-
this.createToolbarModule(quill);
|
|
161378
|
-
}
|
|
161379
|
-
createToolbarModule(quill) {
|
|
161380
|
-
const toolbarModule = quill.getModule('toolbar');
|
|
161381
|
-
if (!toolbarModule) {
|
|
161382
|
-
throw new Error(`quill.${this.name} requires the "toolbar" module`);
|
|
161383
|
-
}
|
|
161384
|
-
this.registerDivModule();
|
|
161385
|
-
const toolbarEl = toolbarModule.container;
|
|
161386
|
-
const buttonContainer = document.createElement('span');
|
|
161387
|
-
buttonContainer.setAttribute('class', 'ql-formats');
|
|
161388
|
-
const button = document.createElement('button');
|
|
161389
|
-
button.innerHTML = this.buttonHTML;
|
|
161390
|
-
button.title = this.buttonTitle;
|
|
161391
|
-
button.onclick = (e) => {
|
|
161392
|
-
e.preventDefault();
|
|
161393
|
-
this.onClick(quill);
|
|
161394
|
-
};
|
|
161395
|
-
buttonContainer.appendChild(button);
|
|
161396
|
-
toolbarEl.appendChild(buttonContainer);
|
|
161397
|
-
}
|
|
161398
|
-
registerDivModule() {
|
|
161399
|
-
const Block = quill_1.default.import('blots/block');
|
|
161400
|
-
class Div extends Block {
|
|
161401
|
-
}
|
|
161402
|
-
Div.tagName = 'div';
|
|
161403
|
-
Div.blotName = 'div';
|
|
161404
|
-
Div.allowedChildren = Block.allowedChildren;
|
|
161405
|
-
Div.allowedChildren.push(Block);
|
|
161406
|
-
quill_1.default.register(Div);
|
|
161407
|
-
}
|
|
161408
|
-
findUID(el) {
|
|
161409
|
-
if ('uid' in el.dataset) {
|
|
161410
|
-
return el.dataset.uid;
|
|
161411
|
-
}
|
|
161412
|
-
return this.findUID(el.parentElement);
|
|
161413
|
-
}
|
|
161414
|
-
getInstance(uid) {
|
|
161415
|
-
if (!(uid in stratus_1.Stratus.Instances)) {
|
|
161416
|
-
return undefined;
|
|
161417
|
-
}
|
|
161418
|
-
return stratus_1.Stratus.Instances[uid];
|
|
161419
|
-
}
|
|
161420
|
-
onClick(quill) {
|
|
161421
|
-
const container = quill.container;
|
|
161422
|
-
const uid = this.findUID(container);
|
|
161423
|
-
const instance = this.getInstance(uid);
|
|
161424
|
-
if (!instance) {
|
|
161425
|
-
return;
|
|
161426
|
-
}
|
|
161427
|
-
instance.trigger(this.eventName, null, this);
|
|
161428
|
-
}
|
|
161429
|
-
trigger(name, data, callee) {
|
|
161430
|
-
if (this.debug) {
|
|
161431
|
-
console.log(`quill.${this.name}.trigger:`, name, data, callee);
|
|
161432
|
-
}
|
|
161433
|
-
}
|
|
161434
|
-
};
|
|
161435
|
-
exports_1("QuillInputButtonPlugin", QuillInputButtonPlugin);
|
|
161436
|
-
}
|
|
161437
|
-
};
|
|
161438
|
-
});
|
|
161439
|
-
|
|
161440
|
-
System.register(["reflect-metadata", "lodash", "@angular/core"], function (exports_1, context_1) {
|
|
161441
|
-
var lodash_1, core_1, RootComponent;
|
|
161442
|
-
context_1 && context_1.id;
|
|
161443
|
-
return {
|
|
161444
|
-
setters: [
|
|
161445
|
-
function (_1) {
|
|
161446
|
-
},
|
|
161447
|
-
function (lodash_1_1) {
|
|
161448
|
-
lodash_1 = lodash_1_1;
|
|
161449
|
-
},
|
|
161450
|
-
function (core_1_1) {
|
|
161451
|
-
core_1 = core_1_1;
|
|
161452
|
-
}
|
|
161453
|
-
],
|
|
161454
|
-
execute: function () {
|
|
161455
|
-
RootComponent = class RootComponent {
|
|
161456
|
-
hydrate(elementRef, sanitizer, attrs) {
|
|
161457
|
-
lodash_1.default.forEach(attrs, (attr) => {
|
|
161458
|
-
const metaDataKeys = Reflect.getMetadataKeys(this, attr);
|
|
161459
|
-
if (!lodash_1.default.includes(metaDataKeys, 'design:type')) {
|
|
161460
|
-
return;
|
|
161461
|
-
}
|
|
161462
|
-
const attrKebab = lodash_1.default.kebabCase(attr);
|
|
161463
|
-
const variants = [
|
|
161464
|
-
attrKebab,
|
|
161465
|
-
'data-' + attrKebab
|
|
161466
|
-
];
|
|
161467
|
-
const variant = lodash_1.default.find(variants, (v) => elementRef.nativeElement.hasAttribute(v));
|
|
161468
|
-
if (lodash_1.default.isEmpty(variant)) {
|
|
161469
|
-
return;
|
|
161470
|
-
}
|
|
161471
|
-
const value = sanitizer.sanitize(core_1.SecurityContext.HTML, elementRef.nativeElement.getAttribute(variant));
|
|
161472
|
-
lodash_1.default.set(this, attr, value);
|
|
161473
|
-
});
|
|
161474
|
-
}
|
|
161475
|
-
};
|
|
161476
|
-
exports_1("RootComponent", RootComponent);
|
|
161477
|
-
}
|
|
161478
|
-
};
|
|
161479
|
-
});
|
|
161480
|
-
|
|
161481
|
-
System.register(["@angular/forms", "@angular/core", "froala-editor"], function (exports_1, context_1) {
|
|
161482
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
161483
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
161484
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
161485
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
161486
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
161487
|
-
};
|
|
161488
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
161489
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
161490
|
-
};
|
|
161491
|
-
var FroalaEditorDirective_1, forms_1, core_1, froala_editor_1, FroalaEditorDirective;
|
|
161492
|
-
context_1 && context_1.id;
|
|
161493
|
-
return {
|
|
161494
|
-
setters: [
|
|
161495
|
-
function (forms_1_1) {
|
|
161496
|
-
forms_1 = forms_1_1;
|
|
161497
|
-
},
|
|
161498
|
-
function (core_1_1) {
|
|
161499
|
-
core_1 = core_1_1;
|
|
161500
|
-
},
|
|
161501
|
-
function (froala_editor_1_1) {
|
|
161502
|
-
froala_editor_1 = froala_editor_1_1;
|
|
161503
|
-
}
|
|
161504
|
-
],
|
|
161505
|
-
execute: function () {
|
|
161506
|
-
FroalaEditorDirective = FroalaEditorDirective_1 = class FroalaEditorDirective {
|
|
161507
|
-
constructor(el, zone) {
|
|
161508
|
-
this.zone = zone;
|
|
161509
|
-
this._opts = {
|
|
161510
|
-
immediateAngularModelUpdate: false,
|
|
161511
|
-
angularIgnoreAttrs: null
|
|
161512
|
-
};
|
|
161513
|
-
this.SPECIAL_TAGS = ['img', 'button', 'input', 'a'];
|
|
161514
|
-
this.INNER_HTML_ATTR = 'innerHTML';
|
|
161515
|
-
this._hasSpecialTag = false;
|
|
161516
|
-
this._editorInitialized = false;
|
|
161517
|
-
this._oldModel = null;
|
|
161518
|
-
this.froalaModelChange = new core_1.EventEmitter();
|
|
161519
|
-
this.froalaInit = new core_1.EventEmitter();
|
|
161520
|
-
this.onChange = (_) => {
|
|
161521
|
-
};
|
|
161522
|
-
this.onTouched = () => {
|
|
161523
|
-
};
|
|
161524
|
-
const element = el.nativeElement;
|
|
161525
|
-
if (this.SPECIAL_TAGS.indexOf(element.tagName.toLowerCase()) != -1) {
|
|
161526
|
-
this._hasSpecialTag = true;
|
|
161527
|
-
}
|
|
161528
|
-
this._element = element;
|
|
161529
|
-
this.zone = zone;
|
|
161530
|
-
}
|
|
161531
|
-
set froalaEditor(opts) {
|
|
161532
|
-
this._opts = this.clone(opts || this._opts);
|
|
161533
|
-
this._opts = Object.assign({}, this._opts);
|
|
161534
|
-
}
|
|
161535
|
-
set froalaModel(content) {
|
|
161536
|
-
this.updateEditor(content);
|
|
161537
|
-
}
|
|
161538
|
-
writeValue(content) {
|
|
161539
|
-
this.updateEditor(content);
|
|
161540
|
-
}
|
|
161541
|
-
registerOnChange(fn) {
|
|
161542
|
-
this.onChange = fn;
|
|
161543
|
-
}
|
|
161544
|
-
registerOnTouched(fn) {
|
|
161545
|
-
this.onTouched = fn;
|
|
161546
|
-
}
|
|
161547
|
-
clone(item) {
|
|
161548
|
-
const me = this;
|
|
161549
|
-
if (!item) {
|
|
161550
|
-
return item;
|
|
161551
|
-
}
|
|
161552
|
-
const types = [Number, String, Boolean];
|
|
161553
|
-
let result;
|
|
161554
|
-
types.forEach((type) => {
|
|
161555
|
-
if (item instanceof type) {
|
|
161556
|
-
result = type(item);
|
|
161557
|
-
}
|
|
161558
|
-
});
|
|
161559
|
-
if (typeof result === 'undefined') {
|
|
161560
|
-
if (Object.prototype.toString.call(item) === '[object Array]') {
|
|
161561
|
-
result = [];
|
|
161562
|
-
item.forEach((child, index, array) => {
|
|
161563
|
-
result[index] = me.clone(child);
|
|
161564
|
-
});
|
|
161565
|
-
}
|
|
161566
|
-
else if (typeof item === 'object') {
|
|
161567
|
-
if (item.nodeType && typeof item.cloneNode === 'function') {
|
|
161568
|
-
result = item.cloneNode(true);
|
|
161569
|
-
}
|
|
161570
|
-
else if (!item.prototype) {
|
|
161571
|
-
if (item instanceof Date) {
|
|
161572
|
-
result = new Date(item);
|
|
161573
|
-
}
|
|
161574
|
-
else {
|
|
161575
|
-
result = {};
|
|
161576
|
-
for (const i in item) {
|
|
161577
|
-
result[i] = me.clone(item[i]);
|
|
161578
|
-
}
|
|
161579
|
-
}
|
|
161580
|
-
}
|
|
161581
|
-
else {
|
|
161582
|
-
{
|
|
161583
|
-
result = item;
|
|
161584
|
-
}
|
|
161585
|
-
}
|
|
161586
|
-
}
|
|
161587
|
-
else {
|
|
161588
|
-
result = item;
|
|
161589
|
-
}
|
|
161590
|
-
}
|
|
161591
|
-
return result;
|
|
161592
|
-
}
|
|
161593
|
-
updateEditor(content) {
|
|
161594
|
-
if (JSON.stringify(this._oldModel) === JSON.stringify(content)) {
|
|
161595
|
-
return;
|
|
161596
|
-
}
|
|
161597
|
-
if (!this._hasSpecialTag) {
|
|
161598
|
-
this._oldModel = content;
|
|
161599
|
-
}
|
|
161600
|
-
else {
|
|
161601
|
-
this._model = content;
|
|
161602
|
-
}
|
|
161603
|
-
if (this._editorInitialized) {
|
|
161604
|
-
if (!this._hasSpecialTag) {
|
|
161605
|
-
this._editor.html.set(content);
|
|
161606
|
-
}
|
|
161607
|
-
else {
|
|
161608
|
-
this.setContent();
|
|
161609
|
-
}
|
|
161610
|
-
}
|
|
161611
|
-
else {
|
|
161612
|
-
if (!this._hasSpecialTag) {
|
|
161613
|
-
this._element.innerHTML = content || '';
|
|
161614
|
-
}
|
|
161615
|
-
else {
|
|
161616
|
-
this.setContent();
|
|
161617
|
-
}
|
|
161618
|
-
}
|
|
161619
|
-
}
|
|
161620
|
-
updateModel() {
|
|
161621
|
-
this.zone.run(() => {
|
|
161622
|
-
let modelContent = null;
|
|
161623
|
-
if (this._hasSpecialTag) {
|
|
161624
|
-
const attributeNodes = this._element.attributes;
|
|
161625
|
-
const attrs = {};
|
|
161626
|
-
for (let i = 0; i < attributeNodes.length; i++) {
|
|
161627
|
-
const attrName = attributeNodes[i].name;
|
|
161628
|
-
if (this._opts.angularIgnoreAttrs && this._opts.angularIgnoreAttrs.indexOf(attrName) != -1) {
|
|
161629
|
-
continue;
|
|
161630
|
-
}
|
|
161631
|
-
attrs[attrName] = attributeNodes[i].value;
|
|
161632
|
-
}
|
|
161633
|
-
if (this._element.innerHTML) {
|
|
161634
|
-
attrs[this.INNER_HTML_ATTR] = this._element.innerHTML;
|
|
161635
|
-
}
|
|
161636
|
-
modelContent = attrs;
|
|
161637
|
-
}
|
|
161638
|
-
else {
|
|
161639
|
-
const returnedHtml = this._editor.html.get();
|
|
161640
|
-
if (typeof returnedHtml === 'string') {
|
|
161641
|
-
modelContent = returnedHtml;
|
|
161642
|
-
}
|
|
161643
|
-
}
|
|
161644
|
-
if (this._oldModel !== modelContent) {
|
|
161645
|
-
this._oldModel = modelContent;
|
|
161646
|
-
this.froalaModelChange.emit(modelContent);
|
|
161647
|
-
this.onChange(modelContent);
|
|
161648
|
-
}
|
|
161649
|
-
});
|
|
161650
|
-
}
|
|
161651
|
-
registerEvent(eventName, callback) {
|
|
161652
|
-
if (!eventName || !callback) {
|
|
161653
|
-
return;
|
|
161654
|
-
}
|
|
161655
|
-
if (!this._opts.events) {
|
|
161656
|
-
this._opts.events = {};
|
|
161657
|
-
}
|
|
161658
|
-
this._opts.events[eventName] = callback;
|
|
161659
|
-
}
|
|
161660
|
-
initListeners() {
|
|
161661
|
-
const self = this;
|
|
161662
|
-
if (this._editor.events) {
|
|
161663
|
-
this._editor.events.on('contentChanged', function () {
|
|
161664
|
-
self.updateModel();
|
|
161665
|
-
});
|
|
161666
|
-
this._editor.events.on('mousedown', function () {
|
|
161667
|
-
setTimeout(function () {
|
|
161668
|
-
self.onTouched();
|
|
161669
|
-
}, 0);
|
|
161670
|
-
});
|
|
161671
|
-
if (this._opts.immediateAngularModelUpdate) {
|
|
161672
|
-
this._editor.events.on('keyup', function () {
|
|
161673
|
-
setTimeout(function () {
|
|
161674
|
-
self.updateModel();
|
|
161675
|
-
}, 0);
|
|
161676
|
-
});
|
|
161677
|
-
}
|
|
161678
|
-
}
|
|
161679
|
-
this._editorInitialized = true;
|
|
161680
|
-
}
|
|
161681
|
-
createEditor() {
|
|
161682
|
-
if (this._editorInitialized) {
|
|
161683
|
-
return;
|
|
161684
|
-
}
|
|
161685
|
-
this.setContent(true);
|
|
161686
|
-
this.zone.runOutsideAngular(() => {
|
|
161687
|
-
if (!this._opts.events) {
|
|
161688
|
-
this._opts.events = {};
|
|
161689
|
-
}
|
|
161690
|
-
this.registerEvent('initialized', this._opts.events && this._opts.events.initialized);
|
|
161691
|
-
const existingInitCallback = this._opts.events.initialized;
|
|
161692
|
-
if (!this._opts.events.initialized || !this._opts.events.initialized.overridden) {
|
|
161693
|
-
this._opts.events.initialized = () => {
|
|
161694
|
-
this.initListeners();
|
|
161695
|
-
existingInitCallback && existingInitCallback.call(this._editor, this);
|
|
161696
|
-
};
|
|
161697
|
-
this._opts.events.initialized.overridden = true;
|
|
161698
|
-
}
|
|
161699
|
-
this._editor = new froala_editor_1.default(this._element, this._opts);
|
|
161700
|
-
});
|
|
161701
|
-
}
|
|
161702
|
-
setHtml() {
|
|
161703
|
-
this._editor.html.set(this._model || '');
|
|
161704
|
-
this._editor.undo.reset();
|
|
161705
|
-
this._editor.undo.saveStep();
|
|
161706
|
-
}
|
|
161707
|
-
setContent(firstTime = false) {
|
|
161708
|
-
const self = this;
|
|
161709
|
-
if (this._model || this._model === '') {
|
|
161710
|
-
this._oldModel = this._model;
|
|
161711
|
-
if (this._hasSpecialTag) {
|
|
161712
|
-
const tags = this._model;
|
|
161713
|
-
if (tags) {
|
|
161714
|
-
for (const attr in tags) {
|
|
161715
|
-
if (tags.hasOwnProperty(attr) && attr != this.INNER_HTML_ATTR) {
|
|
161716
|
-
this._element.setAttribute(attr, tags[attr]);
|
|
161717
|
-
}
|
|
161718
|
-
}
|
|
161719
|
-
if (tags.hasOwnProperty(this.INNER_HTML_ATTR)) {
|
|
161720
|
-
this._element.innerHTML = tags[this.INNER_HTML_ATTR];
|
|
161721
|
-
}
|
|
161722
|
-
}
|
|
161723
|
-
}
|
|
161724
|
-
else {
|
|
161725
|
-
if (firstTime) {
|
|
161726
|
-
this.registerEvent('initialized', function () {
|
|
161727
|
-
self.setHtml();
|
|
161728
|
-
});
|
|
161729
|
-
}
|
|
161730
|
-
else {
|
|
161731
|
-
self.setHtml();
|
|
161732
|
-
}
|
|
161733
|
-
}
|
|
161734
|
-
}
|
|
161735
|
-
}
|
|
161736
|
-
destroyEditor() {
|
|
161737
|
-
if (this._editorInitialized) {
|
|
161738
|
-
this._editor.destroy();
|
|
161739
|
-
this._editorInitialized = false;
|
|
161740
|
-
}
|
|
161741
|
-
}
|
|
161742
|
-
getEditor() {
|
|
161743
|
-
if (this._element) {
|
|
161744
|
-
return this._editor;
|
|
161745
|
-
}
|
|
161746
|
-
return null;
|
|
161747
|
-
}
|
|
161748
|
-
generateManualController() {
|
|
161749
|
-
const controls = {
|
|
161750
|
-
initialize: this.createEditor.bind(this),
|
|
161751
|
-
destroy: this.destroyEditor.bind(this),
|
|
161752
|
-
getEditor: this.getEditor.bind(this),
|
|
161753
|
-
};
|
|
161754
|
-
this.froalaInit.emit(controls);
|
|
161755
|
-
}
|
|
161756
|
-
ngAfterViewInit() {
|
|
161757
|
-
if (!this.froalaInit.observers.length) {
|
|
161758
|
-
this.createEditor();
|
|
161759
|
-
}
|
|
161760
|
-
else {
|
|
161761
|
-
this.generateManualController();
|
|
161762
|
-
}
|
|
161763
|
-
}
|
|
161764
|
-
ngOnDestroy() {
|
|
161765
|
-
this.destroyEditor();
|
|
161766
|
-
}
|
|
161767
|
-
};
|
|
161768
|
-
__decorate([
|
|
161769
|
-
core_1.Input(),
|
|
161770
|
-
__metadata("design:type", Object),
|
|
161771
|
-
__metadata("design:paramtypes", [Object])
|
|
161772
|
-
], FroalaEditorDirective.prototype, "froalaEditor", null);
|
|
161773
|
-
__decorate([
|
|
161774
|
-
core_1.Input(),
|
|
161775
|
-
__metadata("design:type", Object),
|
|
161776
|
-
__metadata("design:paramtypes", [Object])
|
|
161777
|
-
], FroalaEditorDirective.prototype, "froalaModel", null);
|
|
161778
|
-
__decorate([
|
|
161779
|
-
core_1.Output(),
|
|
161780
|
-
__metadata("design:type", core_1.EventEmitter)
|
|
161781
|
-
], FroalaEditorDirective.prototype, "froalaModelChange", void 0);
|
|
161782
|
-
__decorate([
|
|
161783
|
-
core_1.Output(),
|
|
161784
|
-
__metadata("design:type", core_1.EventEmitter)
|
|
161785
|
-
], FroalaEditorDirective.prototype, "froalaInit", void 0);
|
|
161786
|
-
FroalaEditorDirective = FroalaEditorDirective_1 = __decorate([
|
|
161787
|
-
core_1.Directive({
|
|
161788
|
-
selector: '[froalaEditor]',
|
|
161789
|
-
exportAs: 'froalaEditor',
|
|
161790
|
-
providers: [
|
|
161791
|
-
{
|
|
161792
|
-
provide: forms_1.NG_VALUE_ACCESSOR, useExisting: core_1.forwardRef(() => FroalaEditorDirective_1),
|
|
161793
|
-
multi: true
|
|
161794
|
-
}
|
|
161795
|
-
]
|
|
161796
|
-
}),
|
|
161797
|
-
__metadata("design:paramtypes", [core_1.ElementRef, core_1.NgZone])
|
|
161798
|
-
], FroalaEditorDirective);
|
|
161799
|
-
exports_1("FroalaEditorDirective", FroalaEditorDirective);
|
|
161800
|
-
}
|
|
161801
|
-
};
|
|
161802
|
-
});
|
|
161803
|
-
|
|
161804
|
-
System.register(["@angular/core", "@stratusjs/angular/froala/editor/froala-editor.directive"], function (exports_1, context_1) {
|
|
161805
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
161806
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
161807
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
161808
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
161809
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
161810
|
-
};
|
|
161811
|
-
var FroalaEditorModule_1, core_1, froala_editor_directive_1, FroalaEditorModule;
|
|
161812
|
-
context_1 && context_1.id;
|
|
161813
|
-
return {
|
|
161814
|
-
setters: [
|
|
161815
|
-
function (core_1_1) {
|
|
161816
|
-
core_1 = core_1_1;
|
|
161817
|
-
},
|
|
161818
|
-
function (froala_editor_directive_1_1) {
|
|
161819
|
-
froala_editor_directive_1 = froala_editor_directive_1_1;
|
|
161820
|
-
}
|
|
161821
|
-
],
|
|
161822
|
-
execute: function () {
|
|
161823
|
-
FroalaEditorModule = FroalaEditorModule_1 = class FroalaEditorModule {
|
|
161824
|
-
static forRoot() {
|
|
161825
|
-
return { ngModule: FroalaEditorModule_1, providers: [] };
|
|
161826
|
-
}
|
|
161827
|
-
};
|
|
161828
|
-
FroalaEditorModule = FroalaEditorModule_1 = __decorate([
|
|
161829
|
-
core_1.NgModule({
|
|
161830
|
-
declarations: [froala_editor_directive_1.FroalaEditorDirective],
|
|
161831
|
-
exports: [froala_editor_directive_1.FroalaEditorDirective]
|
|
161832
|
-
})
|
|
161833
|
-
], FroalaEditorModule);
|
|
161834
|
-
exports_1("FroalaEditorModule", FroalaEditorModule);
|
|
161835
|
-
}
|
|
161836
|
-
};
|
|
161837
|
-
});
|
|
161838
|
-
|
|
161839
|
-
System.register(["@stratusjs/angular/froala/editor/froala-editor.directive", "@stratusjs/angular/froala/editor/froala-editor.module"], function (exports_1, context_1) {
|
|
161840
|
-
context_1 && context_1.id;
|
|
161841
|
-
return {
|
|
161842
|
-
setters: [
|
|
161843
|
-
function (froala_editor_directive_1_1) {
|
|
161844
|
-
exports_1({
|
|
161845
|
-
"FroalaEditorDirective": froala_editor_directive_1_1["FroalaEditorDirective"]
|
|
161846
|
-
});
|
|
161847
|
-
},
|
|
161848
|
-
function (froala_editor_module_1_1) {
|
|
161849
|
-
exports_1({
|
|
161850
|
-
"FroalaEditorModule": froala_editor_module_1_1["FroalaEditorModule"]
|
|
161851
|
-
});
|
|
161852
|
-
}
|
|
161853
|
-
],
|
|
161854
|
-
execute: function () {
|
|
161855
|
-
}
|
|
161856
|
-
};
|
|
161857
|
-
});
|
|
161858
|
-
|
|
161859
|
-
System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.directive"], function (exports_1, context_1) {
|
|
161860
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
161861
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
161862
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
161863
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
161864
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
161865
|
-
};
|
|
161866
|
-
var FroalaViewModule_1, core_1, froala_view_directive_1, FroalaViewModule;
|
|
161867
|
-
context_1 && context_1.id;
|
|
161868
|
-
return {
|
|
161869
|
-
setters: [
|
|
161870
|
-
function (core_1_1) {
|
|
161871
|
-
core_1 = core_1_1;
|
|
161872
|
-
},
|
|
161873
|
-
function (froala_view_directive_1_1) {
|
|
161874
|
-
froala_view_directive_1 = froala_view_directive_1_1;
|
|
161875
|
-
}
|
|
161876
|
-
],
|
|
161877
|
-
execute: function () {
|
|
161878
|
-
FroalaViewModule = FroalaViewModule_1 = class FroalaViewModule {
|
|
161879
|
-
static forRoot() {
|
|
161880
|
-
return { ngModule: FroalaViewModule_1, providers: [] };
|
|
161881
|
-
}
|
|
161882
|
-
};
|
|
161883
|
-
FroalaViewModule = FroalaViewModule_1 = __decorate([
|
|
161884
|
-
core_1.NgModule({
|
|
161885
|
-
declarations: [froala_view_directive_1.FroalaViewDirective],
|
|
161886
|
-
exports: [froala_view_directive_1.FroalaViewDirective]
|
|
161887
|
-
})
|
|
161888
|
-
], FroalaViewModule);
|
|
161889
|
-
exports_1("FroalaViewModule", FroalaViewModule);
|
|
161890
|
-
}
|
|
161891
|
-
};
|
|
161892
|
-
});
|
|
161893
|
-
|
|
161894
|
-
System.register(["@angular/core"], function (exports_1, context_1) {
|
|
161895
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
161896
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
161897
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
161898
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
161899
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
161900
|
-
};
|
|
161901
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
161902
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
161903
|
-
};
|
|
161904
|
-
var core_1, FroalaViewDirective;
|
|
161905
|
-
context_1 && context_1.id;
|
|
161906
|
-
return {
|
|
161907
|
-
setters: [
|
|
161908
|
-
function (core_1_1) {
|
|
161909
|
-
core_1 = core_1_1;
|
|
161910
|
-
}
|
|
161911
|
-
],
|
|
161912
|
-
execute: function () {
|
|
161913
|
-
FroalaViewDirective = class FroalaViewDirective {
|
|
161914
|
-
constructor(renderer, element) {
|
|
161915
|
-
this.renderer = renderer;
|
|
161916
|
-
this._element = element.nativeElement;
|
|
161917
|
-
}
|
|
161918
|
-
set froalaView(content) {
|
|
161919
|
-
this._element.innerHTML = content;
|
|
161920
|
-
}
|
|
161921
|
-
ngAfterViewInit() {
|
|
161922
|
-
this.renderer.addClass(this._element, 'fr-view');
|
|
161923
|
-
}
|
|
161924
|
-
};
|
|
161925
|
-
__decorate([
|
|
161926
|
-
core_1.Input(),
|
|
161927
|
-
__metadata("design:type", String),
|
|
161928
|
-
__metadata("design:paramtypes", [String])
|
|
161929
|
-
], FroalaViewDirective.prototype, "froalaView", null);
|
|
161930
|
-
FroalaViewDirective = __decorate([
|
|
161931
|
-
core_1.Directive({
|
|
161932
|
-
selector: '[froalaView]'
|
|
161933
|
-
}),
|
|
161934
|
-
__metadata("design:paramtypes", [core_1.Renderer2, core_1.ElementRef])
|
|
161935
|
-
], FroalaViewDirective);
|
|
161936
|
-
exports_1("FroalaViewDirective", FroalaViewDirective);
|
|
161937
|
-
}
|
|
161938
|
-
};
|
|
161939
|
-
});
|
|
161940
|
-
|
|
161941
|
-
System.register(["@stratusjs/angular/froala/view/froala-view.directive", "@stratusjs/angular/froala/view/froala-view.module"], function (exports_1, context_1) {
|
|
161942
|
-
context_1 && context_1.id;
|
|
161943
|
-
return {
|
|
161944
|
-
setters: [
|
|
161945
|
-
function (froala_view_directive_1_1) {
|
|
161946
|
-
exports_1({
|
|
161947
|
-
"FroalaViewDirective": froala_view_directive_1_1["FroalaViewDirective"]
|
|
161948
|
-
});
|
|
161949
|
-
},
|
|
161950
|
-
function (froala_view_module_1_1) {
|
|
161951
|
-
exports_1({
|
|
161952
|
-
"FroalaViewModule": froala_view_module_1_1["FroalaViewModule"]
|
|
161953
|
-
});
|
|
161954
|
-
}
|
|
161955
|
-
],
|
|
161956
|
-
execute: function () {
|
|
161957
|
-
}
|
|
161958
|
-
};
|
|
161959
|
-
});
|
|
161960
|
-
|
|
161961
|
-
/*!
|
|
161962
|
-
* froala_editor v3.2.3 (https://www.froala.com/wysiwyg-editor)
|
|
161963
|
-
* License https://froala.com/wysiwyg-editor/terms/
|
|
161964
|
-
* Copyright 2014-2020 Froala Labs
|
|
161965
|
-
*/
|
|
161966
|
-
System.register(["froala-editor"], function (exports_1, context_1) {
|
|
161967
|
-
var froala_editor_1;
|
|
161968
|
-
context_1 && context_1.id;
|
|
161969
|
-
return {
|
|
161970
|
-
setters: [
|
|
161971
|
-
function (froala_editor_1_1) {
|
|
161972
|
-
froala_editor_1 = froala_editor_1_1;
|
|
161973
|
-
}
|
|
161974
|
-
],
|
|
161975
|
-
execute: function () {
|
|
161976
|
-
/*!
|
|
161977
|
-
* froala_editor v3.2.3 (https://www.froala.com/wysiwyg-editor)
|
|
161978
|
-
* License https://froala.com/wysiwyg-editor/terms/
|
|
161979
|
-
* Copyright 2014-2020 Froala Labs
|
|
161980
|
-
*/
|
|
161981
|
-
if (((froala_editor_1.default && froala_editor_1.default.hasOwnProperty('default') ? froala_editor_1.default.default : froala_editor_1.default),
|
|
161982
|
-
Object.assign(froala_editor_1.default.DEFAULTS, {
|
|
161983
|
-
imageManagerLoadURL: 'https://i.froala.com/load-files',
|
|
161984
|
-
imageManagerLoadMethod: 'get',
|
|
161985
|
-
imageManagerLoadParams: {},
|
|
161986
|
-
imageManagerPreloader: null,
|
|
161987
|
-
imageManagerDeleteURL: '',
|
|
161988
|
-
imageManagerDeleteMethod: 'post',
|
|
161989
|
-
imageManagerDeleteParams: {},
|
|
161990
|
-
imageManagerPageSize: 12,
|
|
161991
|
-
imageManagerScrollOffset: 20,
|
|
161992
|
-
imageManagerToggleTags: !0,
|
|
161993
|
-
}),
|
|
161994
|
-
(froala_editor_1.default.PLUGINS.imageManagerCustom = (s) => {
|
|
161995
|
-
let g, l, i, o, d, m, c, f, u, p, h, v = s.$, M = 'image_manager', e = 10, b = 11, w = 12, C = 13, L = 14, D = 15, t = 21, r = 22, n = {};
|
|
161996
|
-
function y() {
|
|
161997
|
-
let e = v(window).outerWidth();
|
|
161998
|
-
return e < 768 ? 2 : e < 1200 ? 3 : 4;
|
|
161999
|
-
}
|
|
162000
|
-
function I() {
|
|
162001
|
-
d.empty();
|
|
162002
|
-
for (let e = 0; e < h; e++) {
|
|
162003
|
-
d.append('<div class="fr-list-column"></div>');
|
|
162004
|
-
}
|
|
162005
|
-
}
|
|
162006
|
-
function P() {
|
|
162007
|
-
if (u < c.length
|
|
162008
|
-
&& (d.outerHeight() <= i.outerHeight() + s.opts.imageManagerScrollOffset
|
|
162009
|
-
|| i.scrollTop() + s.opts.imageManagerScrollOffset > d.outerHeight() - i.outerHeight())) {
|
|
162010
|
-
f++;
|
|
162011
|
-
for (let e = s.opts.imageManagerPageSize * (f - 1); e < Math.min(c.length, s.opts.imageManagerPageSize * f); e++) {
|
|
162012
|
-
a(c[e]);
|
|
162013
|
-
}
|
|
162014
|
-
}
|
|
162015
|
-
}
|
|
162016
|
-
function a(n) {
|
|
162017
|
-
let i = new Image(), o = v(document.createElement('div'))
|
|
162018
|
-
.attr('class', 'fr-image-container fr-empty fr-image-' + p++)
|
|
162019
|
-
.attr('data-loading', s.language.translate('Loading') + '..')
|
|
162020
|
-
.attr('data-deleting', s.language.translate('Deleting') + '..');
|
|
162021
|
-
R(!1),
|
|
162022
|
-
(i.onload = function () {
|
|
162023
|
-
o.height(Math.floor((o.width() / i.width) * i.height));
|
|
162024
|
-
let t = v(document.createElement('img'));
|
|
162025
|
-
if (n.thumb) {
|
|
162026
|
-
t.attr('src', n.thumb);
|
|
162027
|
-
}
|
|
162028
|
-
else {
|
|
162029
|
-
if ((O(L, n), !n.url)) {
|
|
162030
|
-
return O(D, n), !1;
|
|
162031
|
-
}
|
|
162032
|
-
t.attr('src', n.url);
|
|
162033
|
-
}
|
|
162034
|
-
if ((n.url && t.attr('data-url', n.url), n.tag)) {
|
|
162035
|
-
if ((l.find('.fr-modal-more.fr-not-available').removeClass('fr-not-available'), l.find('.fr-modal-tags').show(), 0 <= n.tag.indexOf(','))) {
|
|
162036
|
-
for (let e = n.tag.split(','), a = 0; a < e.length; a++) {
|
|
162037
|
-
(e[a] =
|
|
162038
|
-
e[a].trim()), 0 === m.find('a[title="'.concat(e[a], '"]')).length && m.append('<a role="button" title="'.concat(e[a], '">').concat(e[a], '</a>'));
|
|
162039
|
-
}
|
|
162040
|
-
t.attr('data-tag', e.join());
|
|
162041
|
-
}
|
|
162042
|
-
else {
|
|
162043
|
-
0 === m.find('a[title="'.concat(n.tag.trim(), '"]')).length && m.append('<a role="button" title="'.concat(n.tag.trim(), '">').concat(n.tag.trim(), '</a>')), t.attr('data-tag', n.tag.trim());
|
|
162044
|
-
}
|
|
162045
|
-
}
|
|
162046
|
-
for (let r in (n.name && t.attr('alt', n.name), n)) {
|
|
162047
|
-
n.hasOwnProperty(r) && 'thumb' !== r && 'url' !== r && 'tag' !== r && t.attr('data-'.concat(r), n[r]);
|
|
162048
|
-
}
|
|
162049
|
-
o
|
|
162050
|
-
.append(t)
|
|
162051
|
-
.append(v(s.icon.create('imageManagerDelete')).addClass('fr-delete-img').attr('title', s.language.translate('Delete')))
|
|
162052
|
-
.append(v(s.icon.create('imageManagerInsert')).addClass('fr-insert-img').attr('title', s.language.translate('Insert'))),
|
|
162053
|
-
m.find('.fr-selected-tag').each(function (e, a) {
|
|
162054
|
-
j(t, a.text) || o.hide();
|
|
162055
|
-
}),
|
|
162056
|
-
t.on('load', function () {
|
|
162057
|
-
o.removeClass('fr-empty'),
|
|
162058
|
-
o.height('auto'),
|
|
162059
|
-
u++,
|
|
162060
|
-
E(T(parseInt(t
|
|
162061
|
-
.parent()
|
|
162062
|
-
.attr('class')
|
|
162063
|
-
.match(/fr-image-(\d+)/)[1], 10) + 1)),
|
|
162064
|
-
R(!1),
|
|
162065
|
-
u % s.opts.imageManagerPageSize === 0 && P();
|
|
162066
|
-
}),
|
|
162067
|
-
s.events.trigger('imageManager.imageLoaded', [t]);
|
|
162068
|
-
}),
|
|
162069
|
-
(i.onerror = () => {
|
|
162070
|
-
u++,
|
|
162071
|
-
o.remove(),
|
|
162072
|
-
E(T(parseInt(o.attr('class').match(/fr-image-(\d+)/)[1], 10) + 1)),
|
|
162073
|
-
O(e, n),
|
|
162074
|
-
u % s.opts.imageManagerPageSize === 0 && P();
|
|
162075
|
-
}),
|
|
162076
|
-
(i.src = n.thumb || n.url),
|
|
162077
|
-
S().append(o);
|
|
162078
|
-
}
|
|
162079
|
-
function S() {
|
|
162080
|
-
let r, n;
|
|
162081
|
-
return (d.find('.fr-list-column').each((e, a) => {
|
|
162082
|
-
let t = v(a);
|
|
162083
|
-
0 === e ? ((n = t.outerHeight()), (r = t)) : t.outerHeight() < n && ((n = t.outerHeight()), (r = t));
|
|
162084
|
-
}),
|
|
162085
|
-
r);
|
|
162086
|
-
}
|
|
162087
|
-
function T(e) {
|
|
162088
|
-
e === undefined && (e = 0);
|
|
162089
|
-
for (let a = [], t = p - 1; e <= t; t--) {
|
|
162090
|
-
let r = d.find('.fr-image-'.concat(t));
|
|
162091
|
-
r.length && (a.push(r), v(document.createElement('div')).attr('id', 'fr-image-hidden-container').append(r), d.find('.fr-image-'.concat(t)).remove());
|
|
162092
|
-
}
|
|
162093
|
-
return a;
|
|
162094
|
-
}
|
|
162095
|
-
function E(e) {
|
|
162096
|
-
for (let a = e.length - 1; 0 <= a; a--) {
|
|
162097
|
-
S().append(e[a]);
|
|
162098
|
-
}
|
|
162099
|
-
}
|
|
162100
|
-
function R(e) {
|
|
162101
|
-
if ((e === undefined && (e = !0), !g.isVisible())) {
|
|
162102
|
-
return !0;
|
|
162103
|
-
}
|
|
162104
|
-
let a = y();
|
|
162105
|
-
if (a !== h) {
|
|
162106
|
-
h = a;
|
|
162107
|
-
let t = T();
|
|
162108
|
-
I(), E(t);
|
|
162109
|
-
}
|
|
162110
|
-
s.modals.resize(M), e && P();
|
|
162111
|
-
}
|
|
162112
|
-
function U(e) {
|
|
162113
|
-
for (let a, t = e[0].attributes, r = t.length, n = {}; r--;) {
|
|
162114
|
-
t[r] && 'src' !== (a = t[r].name) && (n[a] = t[r].value);
|
|
162115
|
-
}
|
|
162116
|
-
return n;
|
|
162117
|
-
}
|
|
162118
|
-
function x(e) {
|
|
162119
|
-
let a = v(e.currentTarget).siblings('img'), t = g.data('instance') || s, r = g.data('current-image');
|
|
162120
|
-
if ((s.modals.hide(M), t.image.showProgressBar(), r)) {
|
|
162121
|
-
r.data('fr-old-src', r.attr('src')), r.trigger('click');
|
|
162122
|
-
}
|
|
162123
|
-
else {
|
|
162124
|
-
t.events.focus(!0), t.selection.restore();
|
|
162125
|
-
let n = t.position.getBoundingRect(), i = n.left + n.width / 2 + v(s.doc).scrollLeft(), o = n.top + n.height + v(s.doc).scrollTop();
|
|
162126
|
-
t.popups.setContainer('image.insert', s.$sc), t.popups.show('image.insert', i, o);
|
|
162127
|
-
}
|
|
162128
|
-
t.image.insert(a.data('url'), !1, U(a), r);
|
|
162129
|
-
}
|
|
162130
|
-
function H(e) {
|
|
162131
|
-
let i = v(e.currentTarget).siblings('img'), a = s.language.translate('Are you sure? Image will be deleted.');
|
|
162132
|
-
confirm(a) &&
|
|
162133
|
-
(s.opts.imageManagerDeleteURL
|
|
162134
|
-
? !1 !== s.events.trigger('imageManager.beforeDeleteImage', [i]) &&
|
|
162135
|
-
(i.parent().addClass('fr-image-deleting'),
|
|
162136
|
-
v(this).ajax({
|
|
162137
|
-
method: s.opts.imageManagerDeleteMethod,
|
|
162138
|
-
url: s.opts.imageManagerDeleteURL,
|
|
162139
|
-
data: Object.assign(Object.assign({ src: i.attr('src') }, U(i)), s.opts.imageManagerDeleteParams),
|
|
162140
|
-
crossDomain: s.opts.requestWithCORS,
|
|
162141
|
-
withCredentials: s.opts.requestWithCredentials,
|
|
162142
|
-
headers: s.opts.requestHeaders,
|
|
162143
|
-
done(e, a, t) {
|
|
162144
|
-
s.events.trigger('imageManager.imageDeleted', [e]);
|
|
162145
|
-
let r = T(parseInt(i
|
|
162146
|
-
.parent()
|
|
162147
|
-
.attr('class')
|
|
162148
|
-
.match(/fr-image-(\d+)/)[1], 10) + 1);
|
|
162149
|
-
i.parent().remove(),
|
|
162150
|
-
E(r),
|
|
162151
|
-
(function n() {
|
|
162152
|
-
g.find('#fr-modal-tags > a').each(function () {
|
|
162153
|
-
0 === g.find('#fr-image-list [data-tag*="'.concat(v(this).text(), '"]')).length && v(this).removeClass('fr-selected-tag').hide();
|
|
162154
|
-
}),
|
|
162155
|
-
_();
|
|
162156
|
-
})(),
|
|
162157
|
-
R(!0);
|
|
162158
|
-
},
|
|
162159
|
-
fail(e) {
|
|
162160
|
-
O(t, e.response || e.responseText);
|
|
162161
|
-
},
|
|
162162
|
-
}))
|
|
162163
|
-
: O(r));
|
|
162164
|
-
}
|
|
162165
|
-
function O(e, a) {
|
|
162166
|
-
10 <= e && e < 20
|
|
162167
|
-
? o.hide()
|
|
162168
|
-
: 20 <= e && e < 30 && v('.fr-image-deleting').removeClass('fr-image-deleting'), s.events.trigger('imageManager.error', [
|
|
162169
|
-
{ code: e, message: n[e] },
|
|
162170
|
-
a
|
|
162171
|
-
]);
|
|
162172
|
-
}
|
|
162173
|
-
function q() {
|
|
162174
|
-
let e = l.find('.fr-modal-head-line').outerHeight(), a = m.outerHeight();
|
|
162175
|
-
l.toggleClass('fr-show-tags'), l.hasClass('fr-show-tags')
|
|
162176
|
-
? (l.css('height', e + a), i.css('marginTop', e + a), m.find('a').css('opacity', 1))
|
|
162177
|
-
: (l.css('height', e), i.css('marginTop', e), m.find('a').css('opacity', 0));
|
|
162178
|
-
}
|
|
162179
|
-
function _() {
|
|
162180
|
-
let e = m.find('.fr-selected-tag');
|
|
162181
|
-
0 < e.length
|
|
162182
|
-
? (d.find('img').parents().show(),
|
|
162183
|
-
e.each((e, r) => {
|
|
162184
|
-
d.find('img').each(function (e, a) {
|
|
162185
|
-
let t = v(a);
|
|
162186
|
-
j(t, r.text) || t.parent().hide();
|
|
162187
|
-
});
|
|
162188
|
-
}))
|
|
162189
|
-
: d.find('img').parents().show(),
|
|
162190
|
-
E(T()),
|
|
162191
|
-
P();
|
|
162192
|
-
}
|
|
162193
|
-
function k(e) {
|
|
162194
|
-
e.preventDefault();
|
|
162195
|
-
let a = v(e.currentTarget);
|
|
162196
|
-
a.toggleClass('fr-selected-tag'), s.opts.imageManagerToggleTags && a.siblings('a').removeClass('fr-selected-tag'), _();
|
|
162197
|
-
}
|
|
162198
|
-
function j(e, a) {
|
|
162199
|
-
for (let t = (e.attr('data-tag') || '').split(','), r = 0; r < t.length; r++) {
|
|
162200
|
-
if (t[r] === a) {
|
|
162201
|
-
return !0;
|
|
162202
|
-
}
|
|
162203
|
-
}
|
|
162204
|
-
return !1;
|
|
162205
|
-
}
|
|
162206
|
-
return ((n[e] = 'Image cannot be loaded from the passed link.'),
|
|
162207
|
-
(n[b] = 'Error during load images request.'),
|
|
162208
|
-
(n[w] = 'Missing imageManagerLoadURL option.'),
|
|
162209
|
-
(n[C] = 'Parsing load response failed.'),
|
|
162210
|
-
(n[L] = 'Missing image thumb.'),
|
|
162211
|
-
(n[D] = 'Missing image URL.'),
|
|
162212
|
-
(n[t] = 'Error during delete image request.'),
|
|
162213
|
-
(n[r] = 'Missing imageManagerDeleteURL option.'),
|
|
162214
|
-
{
|
|
162215
|
-
require: ['image'],
|
|
162216
|
-
_init: function z() {
|
|
162217
|
-
if (!s.$wp && 'IMG' !== s.el.tagName) {
|
|
162218
|
-
return !1;
|
|
162219
|
-
}
|
|
162220
|
-
},
|
|
162221
|
-
show: function G() {
|
|
162222
|
-
if (!g) {
|
|
162223
|
-
let e, a = '<button class="fr-command fr-btn fr-modal-more fr-not-available" id="fr-modal-more-'
|
|
162224
|
-
.concat(s.sid, '"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24""><path d="')
|
|
162225
|
-
.concat(froala_editor_1.default.SVG.tags, '"/></svg></button><h4 data-text="true">')
|
|
162226
|
-
.concat(s.language.translate('Manage Images'), '</h4></div>\n <div class="fr-modal-tags" id="fr-modal-tags">');
|
|
162227
|
-
(e = s.opts.imageManagerPreloader
|
|
162228
|
-
? '<img class="fr-preloader" id="fr-preloader" alt="'.concat(s.language.translate('Loading'), '.." src="').concat(s.opts.imageManagerPreloader, '" style="display: none;">')
|
|
162229
|
-
: '<span class="fr-preloader" id="fr-preloader" style="display: none;">'.concat(s.language.translate('Loading'), '</span>')),
|
|
162230
|
-
(e += '<div class="fr-image-list" id="fr-image-list"></div>');
|
|
162231
|
-
let t = s.modals.create(M, a, e);
|
|
162232
|
-
(g = t.$modal), (l = t.$head), (i = t.$body);
|
|
162233
|
-
}
|
|
162234
|
-
g.data('current-image', s.image.get()),
|
|
162235
|
-
s.modals.show(M),
|
|
162236
|
-
o ||
|
|
162237
|
-
(function r() {
|
|
162238
|
-
(o = g.find('#fr-preloader')),
|
|
162239
|
-
(d = g.find('#fr-image-list')),
|
|
162240
|
-
(m = g.find('#fr-modal-tags')),
|
|
162241
|
-
(h = y()),
|
|
162242
|
-
I(),
|
|
162243
|
-
l.css('height', l.find('.fr-modal-head-line').outerHeight()),
|
|
162244
|
-
s.events.$on(v(s.o_win), 'resize', () => {
|
|
162245
|
-
R(!!c);
|
|
162246
|
-
}),
|
|
162247
|
-
s.events.bindClick(d, '.fr-insert-img', x),
|
|
162248
|
-
s.events.bindClick(d, '.fr-delete-img', H),
|
|
162249
|
-
s.helpers.isMobile() &&
|
|
162250
|
-
(s.events.bindClick(d, 'div.fr-image-container', (e) => {
|
|
162251
|
-
g.find('.fr-mobile-selected').removeClass('fr-mobile-selected'),
|
|
162252
|
-
v(e.currentTarget).addClass('fr-mobile-selected');
|
|
162253
|
-
}),
|
|
162254
|
-
g.on(s._mousedown, () => {
|
|
162255
|
-
g.find('.fr-mobile-selected').removeClass('fr-mobile-selected');
|
|
162256
|
-
})),
|
|
162257
|
-
g.on(s._mousedown + ' ' + s._mouseup, (e) => {
|
|
162258
|
-
e.stopPropagation();
|
|
162259
|
-
}),
|
|
162260
|
-
g.on(s._mousedown, '*', () => {
|
|
162261
|
-
s.events.disableBlur();
|
|
162262
|
-
}),
|
|
162263
|
-
i.on('scroll', P),
|
|
162264
|
-
s.events.bindClick(g, 'button#fr-modal-more-'.concat(s.sid), q),
|
|
162265
|
-
s.events.bindClick(m, 'a', k);
|
|
162266
|
-
})(),
|
|
162267
|
-
(function n() {
|
|
162268
|
-
o.show(),
|
|
162269
|
-
d.find('.fr-list-column').empty(),
|
|
162270
|
-
s.opts.imageManagerLoadURL
|
|
162271
|
-
? v(this).ajax({
|
|
162272
|
-
url: s.opts.imageManagerLoadURL,
|
|
162273
|
-
method: s.opts.imageManagerLoadMethod,
|
|
162274
|
-
data: s.opts.imageManagerLoadParams,
|
|
162275
|
-
crossDomain: s.opts.requestWithCORS,
|
|
162276
|
-
withCredentials: s.opts.requestWithCredentials,
|
|
162277
|
-
headers: s.opts.requestHeaders,
|
|
162278
|
-
done(e, a, t) {
|
|
162279
|
-
s.events.trigger('imageManager.imagesLoaded', [e]),
|
|
162280
|
-
(function r(e, a) {
|
|
162281
|
-
try {
|
|
162282
|
-
d.find('.fr-list-column').empty(), (p = u = f = 0), (c = JSON.parse(e)), P();
|
|
162283
|
-
}
|
|
162284
|
-
catch (t) {
|
|
162285
|
-
O(C, a);
|
|
162286
|
-
}
|
|
162287
|
-
})(e, t.response),
|
|
162288
|
-
o.hide();
|
|
162289
|
-
},
|
|
162290
|
-
fail(e) {
|
|
162291
|
-
O(b, e.response || e.responseText);
|
|
162292
|
-
},
|
|
162293
|
-
})
|
|
162294
|
-
: O(w);
|
|
162295
|
-
})();
|
|
162296
|
-
},
|
|
162297
|
-
hide: function N() {
|
|
162298
|
-
s.modals.hide(M);
|
|
162299
|
-
},
|
|
162300
|
-
});
|
|
162301
|
-
}),
|
|
162302
|
-
!froala_editor_1.default.PLUGINS.image)) {
|
|
162303
|
-
throw new Error('Image manager plugin requires image plugin.');
|
|
162304
|
-
}
|
|
162305
|
-
froala_editor_1.default.DEFAULTS.imageInsertButtons.push('imageManagerCustom'),
|
|
162306
|
-
froala_editor_1.default.RegisterCommand('imageManagerCustom', {
|
|
162307
|
-
title: 'Browse',
|
|
162308
|
-
undo: !1,
|
|
162309
|
-
focus: !1,
|
|
162310
|
-
modal: !0,
|
|
162311
|
-
callback() {
|
|
162312
|
-
this.imageManagerCustom.show();
|
|
162313
|
-
},
|
|
162314
|
-
plugin: 'imageManagerCustom',
|
|
162315
|
-
}),
|
|
162316
|
-
froala_editor_1.default.DefineIcon('imageManagerCustom', { NAME: 'folder', SVG_KEY: 'imageManager' }),
|
|
162317
|
-
froala_editor_1.default.DefineIcon('imageManagerCustomInsert', { NAME: 'plus', SVG_KEY: 'add' }),
|
|
162318
|
-
froala_editor_1.default.DefineIcon('imageManagerCustomDelete', { NAME: 'trash', SVG_KEY: 'remove' });
|
|
162319
|
-
}
|
|
162320
|
-
};
|
|
162321
|
-
});
|
|
162322
|
-
|
|
162323
161108
|
FroalaEditor.DEFAULTS = Object.assign(FroalaEditor.DEFAULTS, {});
|
|
162324
161109
|
FroalaEditor.PLUGINS.menuButton = function menuButton(editor) {
|
|
162325
161110
|
let inputButton;
|