@stratusjs/angular 0.7.3 → 0.7.5
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 +512 -410
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +2 -2
- package/src/tree/tree-dialog.component.js +1 -1
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-dialog.component.min.js +1 -1
- package/src/tree/tree-dialog.component.ts +1 -1
package/dist/angular.bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/environment', '@stratusjs/core/misc', '@stratusjs/angularjs/services/model', '@stratusjs/angularjs/services/registry', '@stratusjs/core/events/eventManager', 'html2pdf', 'font-awesome', 'froala-plugins', 'froala-embedly', 'froala-font-awesome', 'froala-image-tui', 'froala-editor', '@stratusjs/core/datastore/xhr', '@agentepsilon/decko', 'toastify-js', '@stratusjs/angularjs/services/collection', 'zone.js/dist/zone'], (function (exports) {
|
|
1
|
+
System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/environment', '@stratusjs/core/misc', '@stratusjs/angularjs/services/model', '@stratusjs/angularjs/services/registry', '@stratusjs/core/events/eventManager', 'html2pdf', 'font-awesome', 'froala-plugins', 'froala-embedly', 'froala-font-awesome', 'froala-image-tui', 'froala-editor', '@stratusjs/core/datastore/xhr', '@agentepsilon/decko', '@stratusjs/angular/core/root.component', 'toastify-js', '@stratusjs/angularjs/services/collection', 'zone.js/dist/zone'], (function (exports) {
|
|
2
2
|
'use strict';
|
|
3
|
-
var Stratus, _, uniqueId$3, snakeCase, head, isEmpty, isUndefined, isString, extend$1, debounce$2, isNumber, isBoolean, isArray$1, clone, isFunction$1, set, isNil, includes, isObject$2, assignIn, forEach, cookie, isJSON, safeUniqueId, Model, Registry, EventManager$1, FroalaEditor, XHR, debounce$1, Toastify, Collection;
|
|
3
|
+
var Stratus, _, uniqueId$3, snakeCase, head, isEmpty, isUndefined, isString, extend$1, debounce$2, isNumber, isBoolean, isArray$1, clone, isFunction$1, set, isNil, includes, isObject$2, assignIn, forEach, cookie, isJSON, safeUniqueId, Model, Registry, EventManager$1, FroalaEditor, XHR, debounce$1, RootComponent$1, Toastify, Collection;
|
|
4
4
|
return {
|
|
5
5
|
setters: [function (module) {
|
|
6
6
|
Stratus = module.Stratus;
|
|
@@ -42,6 +42,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
42
42
|
XHR = module.XHR;
|
|
43
43
|
}, function (module) {
|
|
44
44
|
debounce$1 = module.debounce;
|
|
45
|
+
}, function (module) {
|
|
46
|
+
RootComponent$1 = module.RootComponent;
|
|
45
47
|
}, function (module) {
|
|
46
48
|
Toastify = module["default"];
|
|
47
49
|
}, function (module) {
|
|
@@ -56675,8 +56677,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56675
56677
|
const systemDir$c = '@stratusjs/angular';
|
|
56676
56678
|
const moduleName$d = 'citation-dialog';
|
|
56677
56679
|
const parentModuleName$6 = 'editor';
|
|
56678
|
-
const min$
|
|
56679
|
-
const localDir$
|
|
56680
|
+
const min$h = !cookie('env') ? '.min' : '';
|
|
56681
|
+
const localDir$i = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$c}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
56680
56682
|
let CitationDialogComponent = exports('CitationDialogComponent', class CitationDialogComponent extends ResponsiveComponent {
|
|
56681
56683
|
constructor(dialogRef, data, fb, snackBar, iconRegistry, sanitizer, ref) {
|
|
56682
56684
|
super();
|
|
@@ -56698,7 +56700,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56698
56700
|
ngOnInit() {
|
|
56699
56701
|
this.uid = uniqueId$3(`sa_${snakeCase(moduleName$d)}_component_`);
|
|
56700
56702
|
Stratus.Instances[this.uid] = this;
|
|
56701
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
56703
|
+
Stratus.Internals.CssLoader(`${localDir$i}${parentModuleName$6}/${moduleName$d}.component${min$h}.css`);
|
|
56702
56704
|
this.model = this.data.model;
|
|
56703
56705
|
this.property = this.data.property;
|
|
56704
56706
|
this.editor = this.data.editor;
|
|
@@ -56816,7 +56818,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56816
56818
|
exports('CitationDialogComponent', CitationDialogComponent = __decorate$p([
|
|
56817
56819
|
Component({
|
|
56818
56820
|
selector: `sa-${moduleName$d}`,
|
|
56819
|
-
templateUrl: `${localDir$
|
|
56821
|
+
templateUrl: `${localDir$i}/${parentModuleName$6}/${moduleName$d}.component${min$h}.html`,
|
|
56820
56822
|
}),
|
|
56821
56823
|
__param$7(1, Inject(MAT_DIALOG_DATA)),
|
|
56822
56824
|
__metadata$l("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -56903,8 +56905,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56903
56905
|
const systemDir$b = '@stratusjs/angular';
|
|
56904
56906
|
const moduleName$c = 'link-dialog';
|
|
56905
56907
|
const parentModuleName$5 = 'editor';
|
|
56906
|
-
const min$
|
|
56907
|
-
const localDir$
|
|
56908
|
+
const min$g = !cookie('env') ? '.min' : '';
|
|
56909
|
+
const localDir$h = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$b}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
56908
56910
|
let LinkDialogComponent = exports('LinkDialogComponent', class LinkDialogComponent extends ResponsiveComponent {
|
|
56909
56911
|
constructor(dialogRef, data, fb, backend, snackBar, iconRegistry, sanitizer, ref) {
|
|
56910
56912
|
super();
|
|
@@ -56940,7 +56942,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
56940
56942
|
ngOnInit() {
|
|
56941
56943
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$c)}_component_`);
|
|
56942
56944
|
Stratus.Instances[this.uid] = this;
|
|
56943
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
56945
|
+
Stratus.Internals.CssLoader(`${localDir$h}${parentModuleName$5}/${moduleName$c}.component${min$g}.css`)
|
|
56944
56946
|
.then(() => {
|
|
56945
56947
|
this.isStyled = true;
|
|
56946
56948
|
this.refresh();
|
|
@@ -57230,7 +57232,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57230
57232
|
exports('LinkDialogComponent', LinkDialogComponent = __decorate$n([
|
|
57231
57233
|
Component({
|
|
57232
57234
|
selector: `sa-${moduleName$c}`,
|
|
57233
|
-
templateUrl: `${localDir$
|
|
57235
|
+
templateUrl: `${localDir$h}/${parentModuleName$5}/${moduleName$c}.component${min$g}.html`,
|
|
57234
57236
|
}),
|
|
57235
57237
|
__param$6(1, Inject(MAT_DIALOG_DATA)),
|
|
57236
57238
|
__metadata$j("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -57256,8 +57258,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57256
57258
|
const systemDir$a = '@stratusjs/angular';
|
|
57257
57259
|
const moduleName$b = 'media-dialog';
|
|
57258
57260
|
const parentModuleName$4 = 'editor';
|
|
57259
|
-
const min$
|
|
57260
|
-
const localDir$
|
|
57261
|
+
const min$f = !cookie('env') ? '.min' : '';
|
|
57262
|
+
const localDir$g = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$a}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
57261
57263
|
let MediaDialogComponent = exports('MediaDialogComponent', class MediaDialogComponent extends ResponsiveComponent {
|
|
57262
57264
|
constructor(dialogRef, data, fb, backend, snackBar, ref) {
|
|
57263
57265
|
super();
|
|
@@ -57281,7 +57283,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57281
57283
|
ngOnInit() {
|
|
57282
57284
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$b)}_component_`);
|
|
57283
57285
|
Stratus.Instances[this.uid] = this;
|
|
57284
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
57286
|
+
Stratus.Internals.CssLoader(`${localDir$g}/${parentModuleName$4}/${moduleName$b}.component${min$f}.css`);
|
|
57285
57287
|
this.model = this.data.model;
|
|
57286
57288
|
this.property = this.data.property;
|
|
57287
57289
|
this.editor = this.data.editor;
|
|
@@ -57520,7 +57522,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57520
57522
|
exports('MediaDialogComponent', MediaDialogComponent = __decorate$m([
|
|
57521
57523
|
Component({
|
|
57522
57524
|
selector: `sa-${moduleName$b}`,
|
|
57523
|
-
templateUrl: `${localDir$
|
|
57525
|
+
templateUrl: `${localDir$g}/${parentModuleName$4}/${moduleName$b}.component${min$f}.html`,
|
|
57524
57526
|
}),
|
|
57525
57527
|
__param$5(1, Inject(MAT_DIALOG_DATA)),
|
|
57526
57528
|
__metadata$i("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -57959,8 +57961,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57959
57961
|
const systemDir$9 = '@stratusjs/angular';
|
|
57960
57962
|
const moduleName$a = 'code-view-dialog';
|
|
57961
57963
|
const parentModuleName$3 = 'editor';
|
|
57962
|
-
const min$
|
|
57963
|
-
const localDir$
|
|
57964
|
+
const min$e = !cookie('env') ? '.min' : '';
|
|
57965
|
+
const localDir$f = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$9}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
57964
57966
|
let CodeViewDialogComponent = exports('CodeViewDialogComponent', class CodeViewDialogComponent extends ResponsiveComponent {
|
|
57965
57967
|
constructor(dialogRef, data, ref, fb, ngZone) {
|
|
57966
57968
|
super();
|
|
@@ -57983,7 +57985,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
57983
57985
|
ngOnInit() {
|
|
57984
57986
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$a)}_component_`);
|
|
57985
57987
|
Stratus.Instances[this.uid] = this;
|
|
57986
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
57988
|
+
Stratus.Internals.CssLoader(`${localDir$f}/${parentModuleName$3}/${moduleName$a}.component${min$e}.css`);
|
|
57987
57989
|
this.model = this.data.model;
|
|
57988
57990
|
this.property = this.data.property;
|
|
57989
57991
|
const dataControl = this.form.get('dataString');
|
|
@@ -58015,7 +58017,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
58015
58017
|
exports('CodeViewDialogComponent', CodeViewDialogComponent = __decorate$l([
|
|
58016
58018
|
Component({
|
|
58017
58019
|
selector: `sa-${moduleName$a}`,
|
|
58018
|
-
templateUrl: `${localDir$
|
|
58020
|
+
templateUrl: `${localDir$f}/${parentModuleName$3}/${moduleName$a}.component${min$e}.html`,
|
|
58019
58021
|
}),
|
|
58020
58022
|
__param$4(1, Inject(MAT_DIALOG_DATA)),
|
|
58021
58023
|
__metadata$h("design:paramtypes", [MatDialogRef, Object, ChangeDetectorRef,
|
|
@@ -80895,8 +80897,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
80895
80897
|
const systemDir$8 = '@stratusjs/angular';
|
|
80896
80898
|
const moduleName$9 = 'citationManager';
|
|
80897
80899
|
const parentModuleName$2 = 'froala/plugins';
|
|
80898
|
-
const min$
|
|
80899
|
-
const localDir$
|
|
80900
|
+
const min$d = !cookie('env') ? '.min' : '';
|
|
80901
|
+
const localDir$e = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$8}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
80900
80902
|
extend$1(FroalaEditor.POPUP_TEMPLATES, {
|
|
80901
80903
|
'citationManager.toolbar': '[_BUTTONS_]'
|
|
80902
80904
|
});
|
|
@@ -80907,7 +80909,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
80907
80909
|
let inputButton;
|
|
80908
80910
|
const debug = false;
|
|
80909
80911
|
function _init() {
|
|
80910
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
80912
|
+
Stratus.Internals.CssLoader(`${localDir$e}${parentModuleName$2}/${moduleName$9}${min$d}.css`);
|
|
80911
80913
|
inputButton = new InputButtonPlugin({
|
|
80912
80914
|
name: 'Citation Manager',
|
|
80913
80915
|
eventName: 'citation-input',
|
|
@@ -84648,8 +84650,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
84648
84650
|
const systemPackage = '@stratusjs/angular';
|
|
84649
84651
|
const froalaPackage = 'froala-editor';
|
|
84650
84652
|
const moduleName$8 = 'editor';
|
|
84651
|
-
const min$
|
|
84652
|
-
const localDir$
|
|
84653
|
+
const min$c = !cookie('env') ? '.min' : '';
|
|
84654
|
+
const localDir$d = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemPackage}/*`].replace(/[^\/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
84653
84655
|
const froalaDir = `${Stratus.BaseUrl}${boot.configuration.paths[froalaPackage].replace(/js\/[^\/]*$/, '')}`;
|
|
84654
84656
|
const has$2 = (object, path) => _.has(object, path) && !_.isEmpty(_.get(object, path));
|
|
84655
84657
|
let EditorComponent = exports('EditorComponent', class EditorComponent extends RootComponent {
|
|
@@ -85190,12 +85192,12 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
85190
85192
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$8)}_component_`);
|
|
85191
85193
|
Stratus.Instances[this.uid] = this;
|
|
85192
85194
|
Stratus.Internals.LoadCss([
|
|
85193
|
-
`${localDir$
|
|
85194
|
-
`${froalaDir}css/froala_editor.pkgd${min$
|
|
85195
|
-
`${froalaDir}css/themes/dark${min$
|
|
85196
|
-
`${froalaDir}css/third_party/embedly${min$
|
|
85197
|
-
`${froalaDir}css/third_party/font_awesome${min$
|
|
85198
|
-
`${froalaDir}css/third_party/image_tui${min$
|
|
85195
|
+
`${localDir$d}${moduleName$8}/${moduleName$8}.component${min$c}.css`,
|
|
85196
|
+
`${froalaDir}css/froala_editor.pkgd${min$c}.css`,
|
|
85197
|
+
`${froalaDir}css/themes/dark${min$c}.css`,
|
|
85198
|
+
`${froalaDir}css/third_party/embedly${min$c}.css`,
|
|
85199
|
+
`${froalaDir}css/third_party/font_awesome${min$c}.css`,
|
|
85200
|
+
`${froalaDir}css/third_party/image_tui${min$c}.css`,
|
|
85199
85201
|
]).then(() => {
|
|
85200
85202
|
this.styled = true;
|
|
85201
85203
|
this.refresh();
|
|
@@ -85598,7 +85600,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
85598
85600
|
exports('EditorComponent', EditorComponent = __decorate$k([
|
|
85599
85601
|
Component({
|
|
85600
85602
|
selector: `sa-${moduleName$8}`,
|
|
85601
|
-
templateUrl: `${localDir$
|
|
85603
|
+
templateUrl: `${localDir$d}/${moduleName$8}/${moduleName$8}.component${min$c}.html`,
|
|
85602
85604
|
}),
|
|
85603
85605
|
__metadata$g("design:paramtypes", [DomSanitizer,
|
|
85604
85606
|
ChangeDetectorRef,
|
|
@@ -122930,8 +122932,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
122930
122932
|
};
|
|
122931
122933
|
const systemDir$7 = '@stratusjs/angular';
|
|
122932
122934
|
const moduleName$7 = 'base';
|
|
122933
|
-
const min$
|
|
122934
|
-
const localDir$
|
|
122935
|
+
const min$b = !cookie('env') ? '.min' : '';
|
|
122936
|
+
const localDir$c = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$7}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
122935
122937
|
let BaseComponent = exports('BaseComponent', class BaseComponent extends RootComponent {
|
|
122936
122938
|
constructor(sanitizer, ref, elementRef) {
|
|
122937
122939
|
super();
|
|
@@ -123008,7 +123010,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123008
123010
|
exports('BaseComponent', BaseComponent = __decorate$h([
|
|
123009
123011
|
Component({
|
|
123010
123012
|
selector: 'sa-base',
|
|
123011
|
-
templateUrl: `${localDir$
|
|
123013
|
+
templateUrl: `${localDir$c}/${moduleName$7}/${moduleName$7}.component${min$b}.html`,
|
|
123012
123014
|
}),
|
|
123013
123015
|
__metadata$f("design:paramtypes", [DomSanitizer,
|
|
123014
123016
|
ChangeDetectorRef,
|
|
@@ -123029,8 +123031,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123029
123031
|
};
|
|
123030
123032
|
const systemDir$6 = '@stratusjs/angular';
|
|
123031
123033
|
const moduleName$6 = 'confirm-dialog';
|
|
123032
|
-
const min$
|
|
123033
|
-
const localDir$
|
|
123034
|
+
const min$a = !cookie('env') ? '.min' : '';
|
|
123035
|
+
const localDir$b = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$6}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123034
123036
|
let ConfirmDialogComponent = exports('ConfirmDialogComponent', class ConfirmDialogComponent {
|
|
123035
123037
|
constructor(dialogRef, data) {
|
|
123036
123038
|
this.dialogRef = dialogRef;
|
|
@@ -123046,7 +123048,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123046
123048
|
exports('ConfirmDialogComponent', ConfirmDialogComponent = __decorate$g([
|
|
123047
123049
|
Component({
|
|
123048
123050
|
selector: `sa-${moduleName$6}`,
|
|
123049
|
-
templateUrl: `${localDir$
|
|
123051
|
+
templateUrl: `${localDir$b}/${moduleName$6}/${moduleName$6}.component${min$a}.html`,
|
|
123050
123052
|
}),
|
|
123051
123053
|
__param$3(1, Inject(MAT_DIALOG_DATA)),
|
|
123052
123054
|
__metadata$e("design:paramtypes", [MatDialogRef, Object])
|
|
@@ -123063,8 +123065,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123063
123065
|
};
|
|
123064
123066
|
const systemDir$5 = '@stratusjs/angular';
|
|
123065
123067
|
const moduleName$5 = 'media-selector';
|
|
123066
|
-
const min$
|
|
123067
|
-
const localDir$
|
|
123068
|
+
const min$9 = !cookie('env') ? '.min' : '';
|
|
123069
|
+
const localDir$a = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$5}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123068
123070
|
const has$1 = (object, path) => _.has(object, path) && !_.isEmpty(_.get(object, path));
|
|
123069
123071
|
let MediaSelectorComponent = exports('MediaSelectorComponent', class MediaSelectorComponent extends RootComponent {
|
|
123070
123072
|
constructor(iconRegistry, sanitizer, ref, elementRef, viewportRuler) {
|
|
@@ -123135,7 +123137,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123135
123137
|
media_selector_audio: `${Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-audio.svg`,
|
|
123136
123138
|
media_selector_document: `${Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-document.svg`
|
|
123137
123139
|
}, (value, key) => iconRegistry.addSvgIcon(key, sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key));
|
|
123138
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
123140
|
+
Stratus.Internals.CssLoader(`${localDir$a}${moduleName$5}/${moduleName$5}.component${min$9}.css`)
|
|
123139
123141
|
.then(() => {
|
|
123140
123142
|
this.styled = true;
|
|
123141
123143
|
this.refresh();
|
|
@@ -123433,7 +123435,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123433
123435
|
exports('MediaSelectorComponent', MediaSelectorComponent = __decorate$f([
|
|
123434
123436
|
Component({
|
|
123435
123437
|
selector: `sa-${moduleName$5}`,
|
|
123436
|
-
templateUrl: `${localDir$
|
|
123438
|
+
templateUrl: `${localDir$a}/${moduleName$5}/${moduleName$5}.component${min$9}.html`,
|
|
123437
123439
|
}),
|
|
123438
123440
|
__metadata$d("design:paramtypes", [MatIconRegistry,
|
|
123439
123441
|
DomSanitizer,
|
|
@@ -123463,8 +123465,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123463
123465
|
};
|
|
123464
123466
|
const systemDir$4 = '@stratusjs/angular';
|
|
123465
123467
|
const moduleName$4 = 'selector';
|
|
123466
|
-
const min$
|
|
123467
|
-
const localDir$
|
|
123468
|
+
const min$8 = !cookie('env') ? '.min' : '';
|
|
123469
|
+
const localDir$9 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$4}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123468
123470
|
const has = (object, path) => _.has(object, path) && !_.isEmpty(_.get(object, path));
|
|
123469
123471
|
let SelectorComponent = exports('SelectorComponent', class SelectorComponent extends RootComponent {
|
|
123470
123472
|
constructor(iconRegistry, sanitizer, ref, elementRef) {
|
|
@@ -123492,7 +123494,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123492
123494
|
selector_status: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`,
|
|
123493
123495
|
selector_edit: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`
|
|
123494
123496
|
}, (value, key) => iconRegistry.addSvgIcon(key, sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key));
|
|
123495
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
123497
|
+
Stratus.Internals.CssLoader(`${localDir$9}${moduleName$4}/${moduleName$4}.component${min$8}.css`)
|
|
123496
123498
|
.then(() => {
|
|
123497
123499
|
this.styled = true;
|
|
123498
123500
|
this.refresh();
|
|
@@ -123718,7 +123720,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123718
123720
|
exports('SelectorComponent', SelectorComponent = __decorate$e([
|
|
123719
123721
|
Component({
|
|
123720
123722
|
selector: `sa-${moduleName$4}`,
|
|
123721
|
-
templateUrl: `${localDir$
|
|
123723
|
+
templateUrl: `${localDir$9}/${moduleName$4}/${moduleName$4}.component${min$8}.html`,
|
|
123722
123724
|
}),
|
|
123723
123725
|
__metadata$c("design:paramtypes", [MatIconRegistry,
|
|
123724
123726
|
DomSanitizer,
|
|
@@ -123749,8 +123751,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123749
123751
|
};
|
|
123750
123752
|
const systemDir$3 = '@stratusjs/angular';
|
|
123751
123753
|
const moduleName$3 = 'tree';
|
|
123752
|
-
const min$
|
|
123753
|
-
const localDir$
|
|
123754
|
+
const min$7 = !cookie('env') ? '.min' : '';
|
|
123755
|
+
const localDir$8 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$3}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
123754
123756
|
let TreeComponent = exports('TreeComponent', class TreeComponent extends RootComponent {
|
|
123755
123757
|
constructor(iconRegistry, sanitizer, backend, ref, elementRef, document) {
|
|
123756
123758
|
super();
|
|
@@ -123786,7 +123788,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
123786
123788
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$3)}_component_`);
|
|
123787
123789
|
Stratus.Instances[this.uid] = this;
|
|
123788
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"]);
|
|
123789
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
123791
|
+
Stratus.Internals.CssLoader(`${localDir$8}/${moduleName$3}/${moduleName$3}.component${min$7}.css`)
|
|
123790
123792
|
.then(() => {
|
|
123791
123793
|
this.isStyled = true;
|
|
123792
123794
|
this.refresh();
|
|
@@ -124250,7 +124252,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124250
124252
|
exports('TreeComponent', TreeComponent = __decorate$d([
|
|
124251
124253
|
Component({
|
|
124252
124254
|
selector: `sa-${moduleName$3}`,
|
|
124253
|
-
templateUrl: `${localDir$
|
|
124255
|
+
templateUrl: `${localDir$8}/${moduleName$3}/${moduleName$3}.component${min$7}.html`,
|
|
124254
124256
|
}),
|
|
124255
124257
|
__param$2(5, Inject(DOCUMENT)),
|
|
124256
124258
|
__metadata$b("design:paramtypes", [MatIconRegistry,
|
|
@@ -124276,8 +124278,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124276
124278
|
const systemDir$2 = '@stratusjs/angular';
|
|
124277
124279
|
const moduleName$2 = 'tree-dialog';
|
|
124278
124280
|
const parentModuleName$1 = 'tree';
|
|
124279
|
-
const min$
|
|
124280
|
-
const localDir$
|
|
124281
|
+
const min$6 = !cookie('env') ? '.min' : '';
|
|
124282
|
+
const localDir$7 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$2}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
124281
124283
|
let TreeDialogComponent = exports('TreeDialogComponent', class TreeDialogComponent extends ResponsiveComponent {
|
|
124282
124284
|
constructor(dialogRef, data, fb, ref) {
|
|
124283
124285
|
super();
|
|
@@ -124301,7 +124303,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124301
124303
|
ngOnInit() {
|
|
124302
124304
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$2)}_component_`);
|
|
124303
124305
|
Stratus.Instances[this.uid] = this;
|
|
124304
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
124306
|
+
Stratus.Internals.CssLoader(`${localDir$7}/${parentModuleName$1}/${moduleName$2}.component${min$6}.css`)
|
|
124305
124307
|
.then(() => {
|
|
124306
124308
|
this.isStyled = true;
|
|
124307
124309
|
})
|
|
@@ -124427,7 +124429,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124427
124429
|
return this.tree.getSvg(url, options);
|
|
124428
124430
|
}
|
|
124429
124431
|
getQueryUrl(query, id) {
|
|
124430
|
-
query = (!_.isString(query) || _.isEmpty(query)) ? '' :
|
|
124432
|
+
query = (!_.isString(query) || _.isEmpty(query)) ? '' : query;
|
|
124431
124433
|
id = !_.isString(id) && !_.isNumber(id) ? '' : `/${id}`;
|
|
124432
124434
|
return `${this.apiBase}${id}?limit=${this.limit}&${this.basicContentQueryAttributes}&q=${query}`;
|
|
124433
124435
|
}
|
|
@@ -124451,7 +124453,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124451
124453
|
exports('TreeDialogComponent', TreeDialogComponent = __decorate$c([
|
|
124452
124454
|
Component({
|
|
124453
124455
|
selector: `sa-${moduleName$2}`,
|
|
124454
|
-
templateUrl: `${localDir$
|
|
124456
|
+
templateUrl: `${localDir$7}/${parentModuleName$1}/${moduleName$2}.component${min$6}.html`,
|
|
124455
124457
|
}),
|
|
124456
124458
|
__param$1(1, Inject(MAT_DIALOG_DATA)),
|
|
124457
124459
|
__metadata$a("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
@@ -124470,8 +124472,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124470
124472
|
const systemDir$1 = '@stratusjs/angular';
|
|
124471
124473
|
const moduleName$1 = 'tree-node';
|
|
124472
124474
|
const parentModuleName = 'tree';
|
|
124473
|
-
const min$
|
|
124474
|
-
const localDir$
|
|
124475
|
+
const min$5 = !cookie('env') ? '.min' : '';
|
|
124476
|
+
const localDir$6 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir$1}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
124475
124477
|
let TreeNodeComponent = exports('TreeNodeComponent', class TreeNodeComponent extends ResponsiveComponent {
|
|
124476
124478
|
constructor(dialog, ref) {
|
|
124477
124479
|
super();
|
|
@@ -124489,7 +124491,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124489
124491
|
ngOnInit() {
|
|
124490
124492
|
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName$1)}_component_`);
|
|
124491
124493
|
Stratus.Instances[this.uid] = this;
|
|
124492
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
124494
|
+
Stratus.Internals.CssLoader(`${localDir$6}/${parentModuleName}/${moduleName$1}.component${min$5}.css`)
|
|
124493
124495
|
.then(() => {
|
|
124494
124496
|
this.isStyled = true;
|
|
124495
124497
|
this.refresh();
|
|
@@ -124700,7 +124702,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124700
124702
|
exports('TreeNodeComponent', TreeNodeComponent = __decorate$b([
|
|
124701
124703
|
Component({
|
|
124702
124704
|
selector: `sa-${moduleName$1}`,
|
|
124703
|
-
templateUrl: `${localDir$
|
|
124705
|
+
templateUrl: `${localDir$6}/${parentModuleName}/${moduleName$1}.component${min$5}.html`,
|
|
124704
124706
|
}),
|
|
124705
124707
|
__metadata$9("design:paramtypes", [MatDialog,
|
|
124706
124708
|
ChangeDetectorRef])
|
|
@@ -127455,7 +127457,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
127455
127457
|
};
|
|
127456
127458
|
const packageName$6 = 'map';
|
|
127457
127459
|
const systemDir = `@stratusjs/${packageName$6}`;
|
|
127458
|
-
const localDir$
|
|
127460
|
+
const localDir$5 = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/angular\/dist\/$/, 'map/src/')}`;
|
|
127459
127461
|
const moduleName = 'map';
|
|
127460
127462
|
const devGoogleMapsKey = 'AIzaSyBAyMH-A99yD5fHQPz7uzqk8glNJYGEqus';
|
|
127461
127463
|
class Watcher {
|
|
@@ -127553,7 +127555,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
127553
127555
|
this.highestMarkerZIndex = 0;
|
|
127554
127556
|
this.uid = safeUniqueId('sa', moduleName, 'component');
|
|
127555
127557
|
Stratus.Instances[this.uid] = this;
|
|
127556
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
127558
|
+
Stratus.Internals.CssLoader(`${localDir$5}/${moduleName}.component.css`)
|
|
127557
127559
|
.then(() => {
|
|
127558
127560
|
this.styled = true;
|
|
127559
127561
|
})
|
|
@@ -128014,7 +128016,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128014
128016
|
MapComponent = __decorate$a([
|
|
128015
128017
|
Component({
|
|
128016
128018
|
selector: `sa-${moduleName}`,
|
|
128017
|
-
templateUrl: `${localDir$
|
|
128019
|
+
templateUrl: `${localDir$5}/${moduleName}.component.html`
|
|
128018
128020
|
}),
|
|
128019
128021
|
__metadata$8("design:paramtypes", [KeyValueDiffers,
|
|
128020
128022
|
Window,
|
|
@@ -128077,11 +128079,25 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128077
128079
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128078
128080
|
});
|
|
128079
128081
|
};
|
|
128082
|
+
class StripeComponent extends RootComponent$1 {
|
|
128083
|
+
constructor() {
|
|
128084
|
+
super(...arguments);
|
|
128085
|
+
this.styled = false;
|
|
128086
|
+
this.initialized = false;
|
|
128087
|
+
}
|
|
128088
|
+
}
|
|
128089
|
+
__decorate$8([
|
|
128090
|
+
Input(),
|
|
128091
|
+
__metadata$7("design:type", String)
|
|
128092
|
+
], StripeComponent.prototype, "elementId", void 0);
|
|
128093
|
+
class StripeListComponent extends StripeComponent {
|
|
128094
|
+
}
|
|
128080
128095
|
let StripeService = class StripeService {
|
|
128081
128096
|
constructor() {
|
|
128082
128097
|
this.publishKey = '';
|
|
128083
128098
|
this.Stripe = {};
|
|
128084
|
-
this.
|
|
128099
|
+
this.instanceOnEmitters = {};
|
|
128100
|
+
this.collections = {};
|
|
128085
128101
|
this.initializing = false;
|
|
128086
128102
|
this.initialized = false;
|
|
128087
128103
|
Stratus.Services.Stripe = this;
|
|
@@ -128195,12 +128211,29 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128195
128211
|
return this.Stripe.stripe.confirmCardSetup(clientSecret, stripeData, options);
|
|
128196
128212
|
});
|
|
128197
128213
|
}
|
|
128198
|
-
registerCollection(collection) {
|
|
128199
|
-
this.collections.
|
|
128214
|
+
registerCollection(component, collection) {
|
|
128215
|
+
this.collections[component.uid] = { uid: component.uid, component, collection };
|
|
128200
128216
|
}
|
|
128201
|
-
fetchCollections() {
|
|
128202
|
-
this
|
|
128203
|
-
|
|
128217
|
+
fetchCollections(uid) {
|
|
128218
|
+
return __awaiter$6(this, void 0, void 0, function* () {
|
|
128219
|
+
let uids;
|
|
128220
|
+
if (isString(uid) &&
|
|
128221
|
+
uid.length > 0) {
|
|
128222
|
+
uids = [uid];
|
|
128223
|
+
}
|
|
128224
|
+
else {
|
|
128225
|
+
uids = Object.keys(this.collections);
|
|
128226
|
+
}
|
|
128227
|
+
const uidList = [];
|
|
128228
|
+
uids.forEach((uidName) => {
|
|
128229
|
+
if (Object.prototype.hasOwnProperty.call(this.collections, uidName)) {
|
|
128230
|
+
uidList.push(() => __awaiter$6(this, void 0, void 0, function* () {
|
|
128231
|
+
yield this.collections[uidName].collection.fetch();
|
|
128232
|
+
this.emitManual('collectionUpdated', uidName, this.collections[uidName].component, this.collections[uidName].collection);
|
|
128233
|
+
}));
|
|
128234
|
+
}
|
|
128235
|
+
});
|
|
128236
|
+
yield Promise.all(uidList.map(fn => fn()));
|
|
128204
128237
|
});
|
|
128205
128238
|
}
|
|
128206
128239
|
createElement(id, publishKey, paymentMethodType, options, mountElement) {
|
|
@@ -128264,6 +128297,53 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128264
128297
|
this.currentElement = undefined;
|
|
128265
128298
|
}
|
|
128266
128299
|
}
|
|
128300
|
+
emit(emitterName, component, ...variables) {
|
|
128301
|
+
this.emitManual(emitterName, component.elementId, component, variables);
|
|
128302
|
+
}
|
|
128303
|
+
emitManual(emitterName, uid, component, ...variables) {
|
|
128304
|
+
var _a, _b;
|
|
128305
|
+
var _c, _d;
|
|
128306
|
+
if (Object.prototype.hasOwnProperty.call(this.instanceOnEmitters, uid) &&
|
|
128307
|
+
Object.prototype.hasOwnProperty.call(this.instanceOnEmitters[uid], emitterName)) {
|
|
128308
|
+
Object.values(this.instanceOnEmitters[uid][emitterName]).forEach((emitter) => {
|
|
128309
|
+
try {
|
|
128310
|
+
emitter(component, variables);
|
|
128311
|
+
}
|
|
128312
|
+
catch (e) {
|
|
128313
|
+
console.error(e, 'issue sending back emitter on', uid, emitterName, emitter);
|
|
128314
|
+
}
|
|
128315
|
+
});
|
|
128316
|
+
}
|
|
128317
|
+
if (emitterName === 'init') {
|
|
128318
|
+
(_a = (_c = this.instanceOnEmitters)[uid]) !== null && _a !== void 0 ? _a : (_c[uid] = {});
|
|
128319
|
+
(_b = (_d = this.instanceOnEmitters[uid])[emitterName]) !== null && _b !== void 0 ? _b : (_d[emitterName] = {});
|
|
128320
|
+
}
|
|
128321
|
+
}
|
|
128322
|
+
removeOnManual(emitterName, emitterId, onId) {
|
|
128323
|
+
if (Object.prototype.hasOwnProperty.call(this.instanceOnEmitters, emitterId) &&
|
|
128324
|
+
Object.prototype.hasOwnProperty.call(this.instanceOnEmitters[emitterId], emitterName) &&
|
|
128325
|
+
Object.prototype.hasOwnProperty.call(this.instanceOnEmitters[emitterId][emitterName], onId)) {
|
|
128326
|
+
delete this.instanceOnEmitters[emitterId][emitterName][onId];
|
|
128327
|
+
}
|
|
128328
|
+
}
|
|
128329
|
+
on(uid, emitterName, callback) {
|
|
128330
|
+
if (emitterName === 'init' &&
|
|
128331
|
+
Object.prototype.hasOwnProperty.call(this.instanceOnEmitters, uid) &&
|
|
128332
|
+
Object.prototype.hasOwnProperty.call(this.instanceOnEmitters[uid], emitterName) &&
|
|
128333
|
+
Object.prototype.hasOwnProperty.call(Stratus.Instances, uid)) {
|
|
128334
|
+
callback(Stratus.Instances[uid]);
|
|
128335
|
+
return;
|
|
128336
|
+
}
|
|
128337
|
+
if (!Object.prototype.hasOwnProperty.call(this.instanceOnEmitters, uid)) {
|
|
128338
|
+
this.instanceOnEmitters[uid] = {};
|
|
128339
|
+
}
|
|
128340
|
+
if (!Object.prototype.hasOwnProperty.call(this.instanceOnEmitters[uid], emitterName)) {
|
|
128341
|
+
this.instanceOnEmitters[uid][emitterName] = {};
|
|
128342
|
+
}
|
|
128343
|
+
const onId = uniqueId$3();
|
|
128344
|
+
this.instanceOnEmitters[uid][emitterName][onId] = callback;
|
|
128345
|
+
return () => { this.removeOnManual(uid, emitterName, onId); };
|
|
128346
|
+
}
|
|
128267
128347
|
};
|
|
128268
128348
|
StripeService = __decorate$8([
|
|
128269
128349
|
Injectable({
|
|
@@ -128293,11 +128373,11 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128293
128373
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128294
128374
|
});
|
|
128295
128375
|
};
|
|
128296
|
-
const min$
|
|
128376
|
+
const min$4 = !cookie('env') ? '.min' : '';
|
|
128297
128377
|
const packageName$5 = 'stripe';
|
|
128298
128378
|
const componentName$5 = 'payment-method';
|
|
128299
|
-
const localDir$
|
|
128300
|
-
let StripePaymentMethodComponent = class StripePaymentMethodComponent extends
|
|
128379
|
+
const localDir$4 = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$5}/src/`;
|
|
128380
|
+
let StripePaymentMethodComponent = class StripePaymentMethodComponent extends StripeComponent {
|
|
128301
128381
|
constructor(elementRef, sanitizer, Stripe, dialogRef, dialogData) {
|
|
128302
128382
|
super();
|
|
128303
128383
|
this.elementRef = elementRef;
|
|
@@ -128308,8 +128388,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128308
128388
|
this.title = `${packageName$5}_${componentName$5}_component`;
|
|
128309
128389
|
this.urlRoot = '/Api';
|
|
128310
128390
|
this.paymentMethodApiPath = 'PaymentMethod';
|
|
128311
|
-
this.styled = false;
|
|
128312
|
-
this.initialized = false;
|
|
128313
128391
|
this.cardComplete = false;
|
|
128314
128392
|
this.cardSaved = false;
|
|
128315
128393
|
this.formPending = false;
|
|
@@ -128321,7 +128399,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128321
128399
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
128322
128400
|
Stratus.Instances[this.uid] = this;
|
|
128323
128401
|
this.elementId = this.elementId || this.uid;
|
|
128324
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
128402
|
+
Stratus.Internals.CssLoader(`${localDir$4}${componentName$5}.component${min$4}.css`)
|
|
128325
128403
|
.then(() => {
|
|
128326
128404
|
this.styled = true;
|
|
128327
128405
|
})
|
|
@@ -128329,7 +128407,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128329
128407
|
console.error('CSS Failed to load for Component:', this);
|
|
128330
128408
|
this.styled = false;
|
|
128331
128409
|
});
|
|
128332
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "
|
|
128410
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "_", "urlRoot", "paymentMethodApiPath", "cardComplete", "cardSaved", "formPending", "clientSecret", "publishKey", "formMessage", "detailedBillingInfo", "defaultBillingInfo", "billingInfo", "cardId", "elementRef", "sanitizer", "Stripe", "dialogRef", "dialogData", "ngOnInit", "isEditable", "isBillingDetailsFilled", "isSubmittable", "saveCard", "dialogClose", "ngOnDestroy", "uid", "elementId", "styled", "initialized", "hydrate", "ref", "disableRefresh", "stagger", "reloading", "refresh"]);
|
|
128333
128411
|
if (!isEmpty(this.dialogData)) {
|
|
128334
128412
|
const keysPossible = ["clientSecret", "publishKey", "formMessage", "urlRoot", "paymentMethodApiPath", "detailedBillingInfo", "defaultBillingInfo"];
|
|
128335
128413
|
Object.keys(this.dialogData).forEach((attr) => {
|
|
@@ -128419,7 +128497,13 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128419
128497
|
yield model.save();
|
|
128420
128498
|
this.cardSaved = true;
|
|
128421
128499
|
this.formPending = false;
|
|
128422
|
-
this.Stripe.fetchCollections();
|
|
128500
|
+
yield this.Stripe.fetchCollections();
|
|
128501
|
+
const cardDetails = {
|
|
128502
|
+
type: 'card',
|
|
128503
|
+
name: this.billingInfo.name,
|
|
128504
|
+
email: this.billingInfo.email
|
|
128505
|
+
};
|
|
128506
|
+
this.Stripe.emitManual('paymentMethodCreated', 'Stripe', this, cardDetails);
|
|
128423
128507
|
}
|
|
128424
128508
|
else {
|
|
128425
128509
|
this.formPending = false;
|
|
@@ -128441,10 +128525,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128441
128525
|
super.ngOnDestroy();
|
|
128442
128526
|
}
|
|
128443
128527
|
};
|
|
128444
|
-
__decorate$7([
|
|
128445
|
-
Input(),
|
|
128446
|
-
__metadata$6("design:type", String)
|
|
128447
|
-
], StripePaymentMethodComponent.prototype, "elementId", void 0);
|
|
128448
128528
|
__decorate$7([
|
|
128449
128529
|
Input(),
|
|
128450
128530
|
__metadata$6("design:type", String)
|
|
@@ -128476,7 +128556,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128476
128556
|
StripePaymentMethodComponent = __decorate$7([
|
|
128477
128557
|
Component({
|
|
128478
128558
|
selector: `sa-${packageName$5}-${componentName$5}`,
|
|
128479
|
-
templateUrl: `${localDir$
|
|
128559
|
+
templateUrl: `${localDir$4}${componentName$5}.component${min$4}.html`,
|
|
128480
128560
|
}),
|
|
128481
128561
|
__param(3, Optional()),
|
|
128482
128562
|
__param(4, Optional()),
|
|
@@ -128505,24 +128585,24 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128505
128585
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128506
128586
|
});
|
|
128507
128587
|
};
|
|
128508
|
-
const min$
|
|
128588
|
+
const min$3 = !cookie('env') ? '.min' : '';
|
|
128509
128589
|
const packageName$4 = 'stripe';
|
|
128510
128590
|
const componentName$4 = 'payment-method-item';
|
|
128511
|
-
const localDir$
|
|
128512
|
-
let StripePaymentMethodItemComponent = class StripePaymentMethodItemComponent extends
|
|
128513
|
-
constructor(dialog, elementRef, sanitizer) {
|
|
128591
|
+
const localDir$3 = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$4}/src/`;
|
|
128592
|
+
let StripePaymentMethodItemComponent = class StripePaymentMethodItemComponent extends StripeComponent {
|
|
128593
|
+
constructor(dialog, elementRef, sanitizer, Stripe) {
|
|
128514
128594
|
super();
|
|
128515
128595
|
this.dialog = dialog;
|
|
128516
128596
|
this.elementRef = elementRef;
|
|
128517
128597
|
this.sanitizer = sanitizer;
|
|
128598
|
+
this.Stripe = Stripe;
|
|
128518
128599
|
this.title = `${packageName$4}_${componentName$4}_component`;
|
|
128519
128600
|
this.editable = false;
|
|
128520
|
-
this.
|
|
128521
|
-
this.initialized = false;
|
|
128601
|
+
this.urlRoot = '/Api';
|
|
128522
128602
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
128523
128603
|
Stratus.Instances[this.uid] = this;
|
|
128524
128604
|
this.elementId = this.elementId || this.uid;
|
|
128525
|
-
Stratus.Internals.CssLoader(`${localDir$
|
|
128605
|
+
Stratus.Internals.CssLoader(`${localDir$3}${componentName$4}.component${min$3}.css`)
|
|
128526
128606
|
.then(() => {
|
|
128527
128607
|
this.styled = true;
|
|
128528
128608
|
})
|
|
@@ -128530,15 +128610,18 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128530
128610
|
console.error('CSS Failed to load for Component:', this);
|
|
128531
128611
|
this.styled = false;
|
|
128532
128612
|
});
|
|
128533
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "
|
|
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"]);
|
|
128534
128614
|
}
|
|
128535
128615
|
ngOnInit() {
|
|
128536
128616
|
return __awaiter$4(this, void 0, void 0, function* () {
|
|
128537
128617
|
this.initialized = true;
|
|
128618
|
+
if (this.urlRoot) {
|
|
128619
|
+
this.model.urlRoot = `${this.urlRoot}${this.model.target ? '/' + this.model.target : ''}`;
|
|
128620
|
+
}
|
|
128538
128621
|
});
|
|
128539
128622
|
}
|
|
128540
128623
|
getCardLogoUrl(brand) {
|
|
128541
|
-
return `${localDir$
|
|
128624
|
+
return `${localDir$3}/images/card/${brand}.png`;
|
|
128542
128625
|
}
|
|
128543
128626
|
isExpired() {
|
|
128544
128627
|
if (this.model.pending) {
|
|
@@ -128592,22 +128675,12 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128592
128675
|
if (!dialogResult) {
|
|
128593
128676
|
return;
|
|
128594
128677
|
}
|
|
128595
|
-
let collection;
|
|
128596
|
-
if (this.model.collection) {
|
|
128597
|
-
collection = this.model.collection;
|
|
128598
|
-
}
|
|
128599
128678
|
yield this.model.destroy();
|
|
128600
|
-
|
|
128601
|
-
collection.fetch();
|
|
128602
|
-
}
|
|
128679
|
+
this.Stripe.fetchCollections();
|
|
128603
128680
|
}));
|
|
128604
128681
|
return dialog;
|
|
128605
128682
|
}
|
|
128606
128683
|
};
|
|
128607
|
-
__decorate$6([
|
|
128608
|
-
Input(),
|
|
128609
|
-
__metadata$5("design:type", String)
|
|
128610
|
-
], StripePaymentMethodItemComponent.prototype, "elementId", void 0);
|
|
128611
128684
|
__decorate$6([
|
|
128612
128685
|
Input(),
|
|
128613
128686
|
__metadata$5("design:type", Model)
|
|
@@ -128616,14 +128689,19 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128616
128689
|
Input(),
|
|
128617
128690
|
__metadata$5("design:type", Object)
|
|
128618
128691
|
], StripePaymentMethodItemComponent.prototype, "editable", void 0);
|
|
128692
|
+
__decorate$6([
|
|
128693
|
+
Input(),
|
|
128694
|
+
__metadata$5("design:type", Object)
|
|
128695
|
+
], StripePaymentMethodItemComponent.prototype, "urlRoot", void 0);
|
|
128619
128696
|
StripePaymentMethodItemComponent = __decorate$6([
|
|
128620
128697
|
Component({
|
|
128621
128698
|
selector: `sa-${packageName$4}-${componentName$4}`,
|
|
128622
|
-
templateUrl: `${localDir$
|
|
128699
|
+
templateUrl: `${localDir$3}${componentName$4}.component${min$3}.html`,
|
|
128623
128700
|
}),
|
|
128624
128701
|
__metadata$5("design:paramtypes", [MatDialog,
|
|
128625
128702
|
ElementRef,
|
|
128626
|
-
DomSanitizer
|
|
128703
|
+
DomSanitizer,
|
|
128704
|
+
StripeService])
|
|
128627
128705
|
], StripePaymentMethodItemComponent);
|
|
128628
128706
|
|
|
128629
128707
|
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -128644,19 +128722,28 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128644
128722
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128645
128723
|
});
|
|
128646
128724
|
};
|
|
128725
|
+
const min$2 = !cookie('env') ? '.min' : '';
|
|
128647
128726
|
const packageName$3 = 'stripe';
|
|
128648
128727
|
const componentName$3 = 'payment-method-item-display';
|
|
128649
|
-
|
|
128728
|
+
const localDir$2 = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$3}/src/`;
|
|
128729
|
+
let StripePaymentMethodItemDisplayComponent = class StripePaymentMethodItemDisplayComponent extends StripeComponent {
|
|
128650
128730
|
constructor(elementRef, sanitizer) {
|
|
128651
128731
|
super();
|
|
128652
128732
|
this.elementRef = elementRef;
|
|
128653
128733
|
this.sanitizer = sanitizer;
|
|
128654
128734
|
this.title = `${packageName$3}_${componentName$3}_component`;
|
|
128655
|
-
this.initialized = false;
|
|
128656
128735
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
128657
128736
|
Stratus.Instances[this.uid] = this;
|
|
128658
128737
|
this.elementId = this.elementId || this.uid;
|
|
128659
|
-
|
|
128738
|
+
Stratus.Internals.CssLoader(`${localDir$2}${componentName$3}.component${min$2}.css`)
|
|
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"]);
|
|
128660
128747
|
}
|
|
128661
128748
|
ngOnInit() {
|
|
128662
128749
|
return __awaiter$3(this, void 0, void 0, function* () {
|
|
@@ -128697,10 +128784,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128697
128784
|
});
|
|
128698
128785
|
}
|
|
128699
128786
|
};
|
|
128700
|
-
__decorate$5([
|
|
128701
|
-
Input(),
|
|
128702
|
-
__metadata$4("design:type", String)
|
|
128703
|
-
], StripePaymentMethodItemDisplayComponent.prototype, "elementId", void 0);
|
|
128704
128787
|
__decorate$5([
|
|
128705
128788
|
Input(),
|
|
128706
128789
|
__metadata$4("design:type", String)
|
|
@@ -128752,7 +128835,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128752
128835
|
const packageName$2 = 'stripe';
|
|
128753
128836
|
const componentName$2 = 'payment-method-list';
|
|
128754
128837
|
const localDir$1 = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$2}/src/`;
|
|
128755
|
-
let StripePaymentMethodListComponent = class StripePaymentMethodListComponent extends
|
|
128838
|
+
let StripePaymentMethodListComponent = class StripePaymentMethodListComponent extends StripeListComponent {
|
|
128756
128839
|
constructor(elementRef, ref, sanitizer, Stripe) {
|
|
128757
128840
|
super();
|
|
128758
128841
|
this.elementRef = elementRef;
|
|
@@ -128760,8 +128843,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128760
128843
|
this.sanitizer = sanitizer;
|
|
128761
128844
|
this.Stripe = Stripe;
|
|
128762
128845
|
this.title = `${packageName$2}_${componentName$2}_component`;
|
|
128763
|
-
this.styled = false;
|
|
128764
|
-
this.initialized = false;
|
|
128765
128846
|
this.urlRoot = '/Api';
|
|
128766
128847
|
this.paymentMethodApiPath = 'PaymentMethod';
|
|
128767
128848
|
this.addCardButtonText = 'Add Payment Method';
|
|
@@ -128778,7 +128859,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128778
128859
|
console.error('CSS Failed to load for Component:', this);
|
|
128779
128860
|
this.styled = false;
|
|
128780
128861
|
});
|
|
128781
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "
|
|
128862
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "urlRoot", "paymentMethodApiPath", "addCardButtonText", "disabled", "property", "detailedBillingInfo", "defaultBillingName", "defaultBillingEmail", "defaultBillingPhone", "defaultBillingZip", "defaultBillingState", "defaultBillingCity", "defaultBillingAddress1", "defaultBillingAddress2", "defaultBillingInfo", "elementRef", "ref", "sanitizer", "Stripe", "ngOnInit", "collection", "uid", "elementId", "styled", "initialized", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
128782
128863
|
const apiOptions = {
|
|
128783
128864
|
autoSave: false,
|
|
128784
128865
|
target: this.paymentMethodApiPath,
|
|
@@ -128787,7 +128868,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128787
128868
|
if (this.urlRoot) {
|
|
128788
128869
|
apiOptions.urlRoot = this.urlRoot;
|
|
128789
128870
|
}
|
|
128790
|
-
this.
|
|
128871
|
+
this.collection = new Collection(apiOptions);
|
|
128791
128872
|
if (this.defaultBillingName) {
|
|
128792
128873
|
this.defaultBillingInfo.name = this.defaultBillingName;
|
|
128793
128874
|
}
|
|
@@ -128815,22 +128896,16 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128815
128896
|
}
|
|
128816
128897
|
ngOnInit() {
|
|
128817
128898
|
return __awaiter$2(this, void 0, void 0, function* () {
|
|
128818
|
-
|
|
128819
|
-
this.Stripe.
|
|
128899
|
+
this.Stripe.registerCollection(this, this.collection);
|
|
128900
|
+
this.Stripe.fetchCollections(this.uid).then();
|
|
128820
128901
|
this.initialized = true;
|
|
128821
|
-
|
|
128822
|
-
|
|
128823
|
-
|
|
128824
|
-
|
|
128825
|
-
yield this.paymentCollection.fetch();
|
|
128826
|
-
yield this.refresh();
|
|
128902
|
+
this.Stripe.emit('init', this);
|
|
128903
|
+
this.Stripe.on(this.uid, 'collectionUpdated', (_source, _collection) => {
|
|
128904
|
+
this.refresh();
|
|
128905
|
+
});
|
|
128827
128906
|
});
|
|
128828
128907
|
}
|
|
128829
128908
|
};
|
|
128830
|
-
__decorate$4([
|
|
128831
|
-
Input(),
|
|
128832
|
-
__metadata$3("design:type", String)
|
|
128833
|
-
], StripePaymentMethodListComponent.prototype, "elementId", void 0);
|
|
128834
128909
|
__decorate$4([
|
|
128835
128910
|
Input(),
|
|
128836
128911
|
__metadata$3("design:type", String)
|
|
@@ -128920,7 +128995,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128920
128995
|
const packageName$1 = 'stripe';
|
|
128921
128996
|
const componentName$1 = 'payment-method-selector';
|
|
128922
128997
|
const localDir = `${Stratus.BaseUrl}${Stratus.DeploymentPath}@stratusjs/${packageName$1}/src/`;
|
|
128923
|
-
let StripePaymentMethodSelectorComponent = class StripePaymentMethodSelectorComponent extends
|
|
128998
|
+
let StripePaymentMethodSelectorComponent = class StripePaymentMethodSelectorComponent extends StripeListComponent {
|
|
128924
128999
|
constructor(elementRef, fb, ref, sanitizer, Stripe) {
|
|
128925
129000
|
super();
|
|
128926
129001
|
this.elementRef = elementRef;
|
|
@@ -128929,11 +129004,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128929
129004
|
this.sanitizer = sanitizer;
|
|
128930
129005
|
this.Stripe = Stripe;
|
|
128931
129006
|
this.title = `${packageName$1}_${componentName$1}_component`;
|
|
128932
|
-
this.styled = false;
|
|
128933
|
-
this.initialized = false;
|
|
128934
129007
|
this.urlRoot = '/Api';
|
|
128935
129008
|
this.paymentMethodApiPath = 'PaymentMethod';
|
|
128936
129009
|
this.addCardButtonText = 'Add Payment Method';
|
|
129010
|
+
this.selectCardButtonText = 'Select Default Payment Method';
|
|
128937
129011
|
this.disabled = false;
|
|
128938
129012
|
this.defaultBillingInfo = { address: {} };
|
|
128939
129013
|
this.fieldName = 'paymentSelection';
|
|
@@ -128956,7 +129030,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128956
129030
|
this.styled = false;
|
|
128957
129031
|
this.refresh().then();
|
|
128958
129032
|
});
|
|
128959
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "
|
|
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"]);
|
|
128960
129034
|
const apiOptions = {
|
|
128961
129035
|
autoSave: false,
|
|
128962
129036
|
target: this.paymentMethodApiPath,
|
|
@@ -128965,7 +129039,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
128965
129039
|
if (this.urlRoot) {
|
|
128966
129040
|
apiOptions.urlRoot = this.urlRoot;
|
|
128967
129041
|
}
|
|
128968
|
-
this.
|
|
129042
|
+
this.collection = new Collection(apiOptions);
|
|
128969
129043
|
if (this.defaultBillingName) {
|
|
128970
129044
|
this.defaultBillingInfo.name = this.defaultBillingName;
|
|
128971
129045
|
}
|
|
@@ -129031,16 +129105,28 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129031
129105
|
return;
|
|
129032
129106
|
}
|
|
129033
129107
|
this.valueChanged(value);
|
|
129034
|
-
});
|
|
129035
|
-
|
|
129036
|
-
this.Stripe.
|
|
129108
|
+
}).then();
|
|
129109
|
+
this.Stripe.registerCollection(this, this.collection);
|
|
129110
|
+
this.Stripe.fetchCollections(this.uid).then();
|
|
129037
129111
|
this.initialized = true;
|
|
129038
|
-
|
|
129039
|
-
|
|
129040
|
-
|
|
129041
|
-
|
|
129042
|
-
|
|
129043
|
-
|
|
129112
|
+
this.Stripe.emit('init', this);
|
|
129113
|
+
this.Stripe.on(this.uid, 'collectionUpdated', (_source, _collection) => {
|
|
129114
|
+
this.refresh();
|
|
129115
|
+
this.selectorListClose();
|
|
129116
|
+
});
|
|
129117
|
+
this.Stripe.on('Stripe', 'paymentMethodCreated', (_source, details) => {
|
|
129118
|
+
const newCardDetails = details[0];
|
|
129119
|
+
if (!isEmpty(newCardDetails.type) &&
|
|
129120
|
+
!isEmpty(newCardDetails.name) &&
|
|
129121
|
+
!isEmpty(newCardDetails.email)) {
|
|
129122
|
+
const newPM = this.collection.models.slice(-1)[0];
|
|
129123
|
+
if (newPM.get('type') === newCardDetails.type &&
|
|
129124
|
+
newPM.get('name') === newCardDetails.name &&
|
|
129125
|
+
newPM.get('email') === newCardDetails.email) {
|
|
129126
|
+
this.valueChanged(newPM);
|
|
129127
|
+
}
|
|
129128
|
+
}
|
|
129129
|
+
});
|
|
129044
129130
|
});
|
|
129045
129131
|
}
|
|
129046
129132
|
valueChanged(value) {
|
|
@@ -129116,11 +129202,23 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129116
129202
|
}
|
|
129117
129203
|
return paymentMethod.data.exp_month < month;
|
|
129118
129204
|
}
|
|
129205
|
+
selectorListClose(ev) {
|
|
129206
|
+
if (ev) {
|
|
129207
|
+
ev.preventDefault();
|
|
129208
|
+
}
|
|
129209
|
+
if (this.paymentSelect && this.paymentSelect.panelOpen) {
|
|
129210
|
+
this.paymentSelect.close();
|
|
129211
|
+
}
|
|
129212
|
+
}
|
|
129213
|
+
selectorListOpen(ev) {
|
|
129214
|
+
if (ev) {
|
|
129215
|
+
ev.preventDefault();
|
|
129216
|
+
}
|
|
129217
|
+
if (this.paymentSelect && !this.paymentSelect.panelOpen) {
|
|
129218
|
+
this.paymentSelect.open();
|
|
129219
|
+
}
|
|
129220
|
+
}
|
|
129119
129221
|
};
|
|
129120
|
-
__decorate$3([
|
|
129121
|
-
Input(),
|
|
129122
|
-
__metadata$2("design:type", String)
|
|
129123
|
-
], StripePaymentMethodSelectorComponent.prototype, "elementId", void 0);
|
|
129124
129222
|
__decorate$3([
|
|
129125
129223
|
Input(),
|
|
129126
129224
|
__metadata$2("design:type", String)
|
|
@@ -129165,6 +129263,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129165
129263
|
Input(),
|
|
129166
129264
|
__metadata$2("design:type", String)
|
|
129167
129265
|
], StripePaymentMethodSelectorComponent.prototype, "addCardButtonText", void 0);
|
|
129266
|
+
__decorate$3([
|
|
129267
|
+
Input(),
|
|
129268
|
+
__metadata$2("design:type", String)
|
|
129269
|
+
], StripePaymentMethodSelectorComponent.prototype, "selectCardButtonText", void 0);
|
|
129168
129270
|
__decorate$3([
|
|
129169
129271
|
Input(),
|
|
129170
129272
|
__metadata$2("design:type", Object)
|
|
@@ -129209,6 +129311,10 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129209
129311
|
Input(),
|
|
129210
129312
|
__metadata$2("design:type", String)
|
|
129211
129313
|
], StripePaymentMethodSelectorComponent.prototype, "defaultBillingAddress2", void 0);
|
|
129314
|
+
__decorate$3([
|
|
129315
|
+
ViewChild('paymentSelect', { static: false }),
|
|
129316
|
+
__metadata$2("design:type", MatSelect)
|
|
129317
|
+
], StripePaymentMethodSelectorComponent.prototype, "paymentSelect", void 0);
|
|
129212
129318
|
StripePaymentMethodSelectorComponent = __decorate$3([
|
|
129213
129319
|
Component({
|
|
129214
129320
|
selector: `sa-${packageName$1}-${componentName$1}`,
|
|
@@ -129242,7 +129348,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129242
129348
|
};
|
|
129243
129349
|
const packageName = 'stripe';
|
|
129244
129350
|
const componentName = 'setup-intent';
|
|
129245
|
-
let StripeSetupIntentComponent = class StripeSetupIntentComponent extends
|
|
129351
|
+
let StripeSetupIntentComponent = class StripeSetupIntentComponent extends StripeComponent {
|
|
129246
129352
|
constructor(elementRef, sanitizer, dialog) {
|
|
129247
129353
|
super();
|
|
129248
129354
|
this.elementRef = elementRef;
|
|
@@ -129259,7 +129365,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129259
129365
|
this.uid = safeUniqueId('sa', snakeCase(this.title));
|
|
129260
129366
|
Stratus.Instances[this.uid] = this;
|
|
129261
129367
|
this.elementId = this.elementId || this.uid;
|
|
129262
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "
|
|
129368
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "styled", "initialized", "newPaymentMethodPrompt", "newPaymentMethodPending", "urlRoot", "paymentMethodApiPath", "addCardButtonText", "detailedBillingInfo", "defaultBillingInfo", "elementRef", "sanitizer", "dialog", "ngOnInit", "addPaymentMethod", "inputPaymentMethod", "uid", "elementId", "hydrate", "ref", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
129263
129369
|
}
|
|
129264
129370
|
ngOnInit() {
|
|
129265
129371
|
this.initialized = true;
|
|
@@ -129332,10 +129438,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
129332
129438
|
});
|
|
129333
129439
|
}
|
|
129334
129440
|
};
|
|
129335
|
-
__decorate$2([
|
|
129336
|
-
Input(),
|
|
129337
|
-
__metadata$1("design:type", String)
|
|
129338
|
-
], StripeSetupIntentComponent.prototype, "elementId", void 0);
|
|
129339
129441
|
__decorate$2([
|
|
129340
129442
|
Input(),
|
|
129341
129443
|
__metadata$1("design:type", String)
|
|
@@ -160996,6 +161098,165 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
160996
161098
|
})
|
|
160997
161099
|
.catch(err => console.error('@stratusjs/angular failed to initialize!', err));
|
|
160998
161100
|
|
|
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
|
+
|
|
160999
161260
|
System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
|
|
161000
161261
|
var quill_1, environment_1, Break, Embed, QuillBreak;
|
|
161001
161262
|
context_1 && context_1.id;
|
|
@@ -161176,165 +161437,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
161176
161437
|
};
|
|
161177
161438
|
});
|
|
161178
161439
|
|
|
161179
|
-
System.register(["quill"], function (exports_1, context_1) {
|
|
161180
|
-
var quill_1, debug, Logger, QuillHtmlEditPlugin;
|
|
161181
|
-
context_1 && context_1.id;
|
|
161182
|
-
function $create(elName) {
|
|
161183
|
-
return document.createElement(elName);
|
|
161184
|
-
}
|
|
161185
|
-
function $setAttr(el, key, value) {
|
|
161186
|
-
return el.setAttribute(key, value);
|
|
161187
|
-
}
|
|
161188
|
-
function launchPopupEditor(quill, options) {
|
|
161189
|
-
const htmlFromEditor = quill.container.querySelector('.ql-editor').innerHTML;
|
|
161190
|
-
const popupContainer = $create('div');
|
|
161191
|
-
const overlayContainer = $create('div');
|
|
161192
|
-
const msg = options.msg || 'Edit HTML here, when you click "OK" the quill editor\'s contents will be replaced';
|
|
161193
|
-
const cancelText = options.cancelText || 'Cancel';
|
|
161194
|
-
const okText = options.okText || 'Ok';
|
|
161195
|
-
$setAttr(overlayContainer, 'class', 'ql-html-overlayContainer');
|
|
161196
|
-
$setAttr(popupContainer, 'class', 'ql-html-popupContainer');
|
|
161197
|
-
const popupTitle = $create('i');
|
|
161198
|
-
$setAttr(popupTitle, 'class', 'ql-html-popupTitle');
|
|
161199
|
-
popupTitle.innerText = msg;
|
|
161200
|
-
const textContainer = $create('div');
|
|
161201
|
-
textContainer.appendChild(popupTitle);
|
|
161202
|
-
$setAttr(textContainer, 'class', 'ql-html-textContainer');
|
|
161203
|
-
const textArea = $create('textarea');
|
|
161204
|
-
$setAttr(textArea, 'class', 'ql-html-textArea');
|
|
161205
|
-
textArea.value = formatHTML(htmlFromEditor);
|
|
161206
|
-
const buttonCancel = $create('button');
|
|
161207
|
-
buttonCancel.innerHTML = cancelText;
|
|
161208
|
-
$setAttr(buttonCancel, 'class', 'ql-html-buttonCancel');
|
|
161209
|
-
const buttonOk = $create('button');
|
|
161210
|
-
buttonOk.innerHTML = okText;
|
|
161211
|
-
const buttonGroup = $create('div');
|
|
161212
|
-
$setAttr(buttonGroup, 'class', 'ql-html-buttonGroup');
|
|
161213
|
-
buttonGroup.appendChild(buttonCancel);
|
|
161214
|
-
buttonGroup.appendChild(buttonOk);
|
|
161215
|
-
textContainer.appendChild(textArea);
|
|
161216
|
-
textContainer.appendChild(buttonGroup);
|
|
161217
|
-
popupContainer.appendChild(textContainer);
|
|
161218
|
-
overlayContainer.appendChild(popupContainer);
|
|
161219
|
-
document.body.appendChild(overlayContainer);
|
|
161220
|
-
buttonCancel.onclick = () => {
|
|
161221
|
-
document.body.removeChild(overlayContainer);
|
|
161222
|
-
};
|
|
161223
|
-
overlayContainer.onclick = buttonCancel.onclick;
|
|
161224
|
-
popupContainer.onclick = (e) => {
|
|
161225
|
-
e.preventDefault();
|
|
161226
|
-
e.stopPropagation();
|
|
161227
|
-
};
|
|
161228
|
-
buttonOk.onclick = () => {
|
|
161229
|
-
const output = textArea.value.split(/\r?\n/g).map((el) => el.trim());
|
|
161230
|
-
const noNewlines = output.join('');
|
|
161231
|
-
quill.container.querySelector('.ql-editor').innerHTML = noNewlines;
|
|
161232
|
-
document.body.removeChild(overlayContainer);
|
|
161233
|
-
};
|
|
161234
|
-
}
|
|
161235
|
-
function formatHTML(code) {
|
|
161236
|
-
const whitespace = ' '.repeat(2);
|
|
161237
|
-
let currentIndent = 0;
|
|
161238
|
-
const newlineChar = '\n';
|
|
161239
|
-
let char = null;
|
|
161240
|
-
let nextChar = null;
|
|
161241
|
-
let result = '';
|
|
161242
|
-
for (let pos = 0; pos <= code.length; pos++) {
|
|
161243
|
-
char = code.substr(pos, 1);
|
|
161244
|
-
nextChar = code.substr(pos + 1, 1);
|
|
161245
|
-
const isBrTag = code.substr(pos, 4) === '<br>';
|
|
161246
|
-
const isOpeningTag = char === '<' && nextChar !== '/' && !isBrTag;
|
|
161247
|
-
const isClosingTag = char === '<' && nextChar === '/' && !isBrTag;
|
|
161248
|
-
if (isBrTag) {
|
|
161249
|
-
result += newlineChar;
|
|
161250
|
-
currentIndent--;
|
|
161251
|
-
pos += 4;
|
|
161252
|
-
}
|
|
161253
|
-
if (isOpeningTag) {
|
|
161254
|
-
result += newlineChar + whitespace.repeat(currentIndent);
|
|
161255
|
-
currentIndent++;
|
|
161256
|
-
}
|
|
161257
|
-
else if (isClosingTag) {
|
|
161258
|
-
if (--currentIndent < 0) {
|
|
161259
|
-
currentIndent = 0;
|
|
161260
|
-
}
|
|
161261
|
-
result += newlineChar + whitespace.repeat(currentIndent);
|
|
161262
|
-
}
|
|
161263
|
-
else if (char === ' ' && nextChar === ' ') {
|
|
161264
|
-
char = '';
|
|
161265
|
-
}
|
|
161266
|
-
else if (char === newlineChar) {
|
|
161267
|
-
if (code.substr(pos, code.substr(pos).indexOf('<')).trim() === '') {
|
|
161268
|
-
char = '';
|
|
161269
|
-
}
|
|
161270
|
-
}
|
|
161271
|
-
result += char;
|
|
161272
|
-
}
|
|
161273
|
-
Logger.log('formatHTML', {
|
|
161274
|
-
before: code,
|
|
161275
|
-
after: result
|
|
161276
|
-
});
|
|
161277
|
-
return result;
|
|
161278
|
-
}
|
|
161279
|
-
return {
|
|
161280
|
-
setters: [
|
|
161281
|
-
function (quill_1_1) {
|
|
161282
|
-
quill_1 = quill_1_1;
|
|
161283
|
-
}
|
|
161284
|
-
],
|
|
161285
|
-
execute: function () {
|
|
161286
|
-
debug = false;
|
|
161287
|
-
Logger = {
|
|
161288
|
-
prefixString() {
|
|
161289
|
-
return `</> quill-html-edit-button: `;
|
|
161290
|
-
},
|
|
161291
|
-
get log() {
|
|
161292
|
-
if (!debug) {
|
|
161293
|
-
return () => { };
|
|
161294
|
-
}
|
|
161295
|
-
const boundLogFn = console.log.bind(console, this.prefixString());
|
|
161296
|
-
return boundLogFn;
|
|
161297
|
-
}
|
|
161298
|
-
};
|
|
161299
|
-
QuillHtmlEditPlugin = class QuillHtmlEditPlugin {
|
|
161300
|
-
constructor(quill, options) {
|
|
161301
|
-
debug = options && options.debug;
|
|
161302
|
-
Logger.log('logging enabled');
|
|
161303
|
-
const toolbarModule = quill.getModule('toolbar');
|
|
161304
|
-
if (!toolbarModule) {
|
|
161305
|
-
throw new Error('quill.htmlEditButton requires the "toolbar" module to be included too');
|
|
161306
|
-
}
|
|
161307
|
-
this.registerDivModule();
|
|
161308
|
-
const toolbarEl = toolbarModule.container;
|
|
161309
|
-
const buttonContainer = $create('span');
|
|
161310
|
-
$setAttr(buttonContainer, 'class', 'ql-formats');
|
|
161311
|
-
const button = $create('button');
|
|
161312
|
-
button.innerHTML = options.buttonHTML || '<>';
|
|
161313
|
-
button.title = options.buttonTitle || 'Show HTML source';
|
|
161314
|
-
button.onclick = (e) => {
|
|
161315
|
-
e.preventDefault();
|
|
161316
|
-
launchPopupEditor(quill, options);
|
|
161317
|
-
};
|
|
161318
|
-
buttonContainer.appendChild(button);
|
|
161319
|
-
toolbarEl.appendChild(buttonContainer);
|
|
161320
|
-
}
|
|
161321
|
-
registerDivModule() {
|
|
161322
|
-
const Block = quill_1.default.import('blots/block');
|
|
161323
|
-
class Div extends Block {
|
|
161324
|
-
}
|
|
161325
|
-
Div.tagName = 'div';
|
|
161326
|
-
Div.blotName = 'div';
|
|
161327
|
-
Div.allowedChildren = Block.allowedChildren;
|
|
161328
|
-
Div.allowedChildren.push(Block);
|
|
161329
|
-
quill_1.default.register(Div);
|
|
161330
|
-
}
|
|
161331
|
-
};
|
|
161332
|
-
exports_1("QuillHtmlEditPlugin", QuillHtmlEditPlugin);
|
|
161333
|
-
exports_1("default", QuillHtmlEditPlugin);
|
|
161334
|
-
}
|
|
161335
|
-
};
|
|
161336
|
-
});
|
|
161337
|
-
|
|
161338
161440
|
System.register(["reflect-metadata", "lodash", "@angular/core"], function (exports_1, context_1) {
|
|
161339
161441
|
var lodash_1, core_1, RootComponent;
|
|
161340
161442
|
context_1 && context_1.id;
|
|
@@ -161754,6 +161856,108 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
161754
161856
|
};
|
|
161755
161857
|
});
|
|
161756
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
|
+
|
|
161757
161961
|
/*!
|
|
161758
161962
|
* froala_editor v3.2.3 (https://www.froala.com/wysiwyg-editor)
|
|
161759
161963
|
* License https://froala.com/wysiwyg-editor/terms/
|
|
@@ -162180,108 +162384,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
162180
162384
|
undo: true
|
|
162181
162385
|
});
|
|
162182
162386
|
|
|
162183
|
-
System.register(["@angular/core"], function (exports_1, context_1) {
|
|
162184
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
162185
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
162186
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
162187
|
-
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;
|
|
162188
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
162189
|
-
};
|
|
162190
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
162191
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
162192
|
-
};
|
|
162193
|
-
var core_1, FroalaViewDirective;
|
|
162194
|
-
context_1 && context_1.id;
|
|
162195
|
-
return {
|
|
162196
|
-
setters: [
|
|
162197
|
-
function (core_1_1) {
|
|
162198
|
-
core_1 = core_1_1;
|
|
162199
|
-
}
|
|
162200
|
-
],
|
|
162201
|
-
execute: function () {
|
|
162202
|
-
FroalaViewDirective = class FroalaViewDirective {
|
|
162203
|
-
constructor(renderer, element) {
|
|
162204
|
-
this.renderer = renderer;
|
|
162205
|
-
this._element = element.nativeElement;
|
|
162206
|
-
}
|
|
162207
|
-
set froalaView(content) {
|
|
162208
|
-
this._element.innerHTML = content;
|
|
162209
|
-
}
|
|
162210
|
-
ngAfterViewInit() {
|
|
162211
|
-
this.renderer.addClass(this._element, 'fr-view');
|
|
162212
|
-
}
|
|
162213
|
-
};
|
|
162214
|
-
__decorate([
|
|
162215
|
-
core_1.Input(),
|
|
162216
|
-
__metadata("design:type", String),
|
|
162217
|
-
__metadata("design:paramtypes", [String])
|
|
162218
|
-
], FroalaViewDirective.prototype, "froalaView", null);
|
|
162219
|
-
FroalaViewDirective = __decorate([
|
|
162220
|
-
core_1.Directive({
|
|
162221
|
-
selector: '[froalaView]'
|
|
162222
|
-
}),
|
|
162223
|
-
__metadata("design:paramtypes", [core_1.Renderer2, core_1.ElementRef])
|
|
162224
|
-
], FroalaViewDirective);
|
|
162225
|
-
exports_1("FroalaViewDirective", FroalaViewDirective);
|
|
162226
|
-
}
|
|
162227
|
-
};
|
|
162228
|
-
});
|
|
162229
|
-
|
|
162230
|
-
System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.directive"], function (exports_1, context_1) {
|
|
162231
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
162232
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
162233
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
162234
|
-
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;
|
|
162235
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
162236
|
-
};
|
|
162237
|
-
var FroalaViewModule_1, core_1, froala_view_directive_1, FroalaViewModule;
|
|
162238
|
-
context_1 && context_1.id;
|
|
162239
|
-
return {
|
|
162240
|
-
setters: [
|
|
162241
|
-
function (core_1_1) {
|
|
162242
|
-
core_1 = core_1_1;
|
|
162243
|
-
},
|
|
162244
|
-
function (froala_view_directive_1_1) {
|
|
162245
|
-
froala_view_directive_1 = froala_view_directive_1_1;
|
|
162246
|
-
}
|
|
162247
|
-
],
|
|
162248
|
-
execute: function () {
|
|
162249
|
-
FroalaViewModule = FroalaViewModule_1 = class FroalaViewModule {
|
|
162250
|
-
static forRoot() {
|
|
162251
|
-
return { ngModule: FroalaViewModule_1, providers: [] };
|
|
162252
|
-
}
|
|
162253
|
-
};
|
|
162254
|
-
FroalaViewModule = FroalaViewModule_1 = __decorate([
|
|
162255
|
-
core_1.NgModule({
|
|
162256
|
-
declarations: [froala_view_directive_1.FroalaViewDirective],
|
|
162257
|
-
exports: [froala_view_directive_1.FroalaViewDirective]
|
|
162258
|
-
})
|
|
162259
|
-
], FroalaViewModule);
|
|
162260
|
-
exports_1("FroalaViewModule", FroalaViewModule);
|
|
162261
|
-
}
|
|
162262
|
-
};
|
|
162263
|
-
});
|
|
162264
|
-
|
|
162265
|
-
System.register(["@stratusjs/angular/froala/view/froala-view.directive", "@stratusjs/angular/froala/view/froala-view.module"], function (exports_1, context_1) {
|
|
162266
|
-
context_1 && context_1.id;
|
|
162267
|
-
return {
|
|
162268
|
-
setters: [
|
|
162269
|
-
function (froala_view_directive_1_1) {
|
|
162270
|
-
exports_1({
|
|
162271
|
-
"FroalaViewDirective": froala_view_directive_1_1["FroalaViewDirective"]
|
|
162272
|
-
});
|
|
162273
|
-
},
|
|
162274
|
-
function (froala_view_module_1_1) {
|
|
162275
|
-
exports_1({
|
|
162276
|
-
"FroalaViewModule": froala_view_module_1_1["FroalaViewModule"]
|
|
162277
|
-
});
|
|
162278
|
-
}
|
|
162279
|
-
],
|
|
162280
|
-
execute: function () {
|
|
162281
|
-
}
|
|
162282
|
-
};
|
|
162283
|
-
});
|
|
162284
|
-
|
|
162285
162387
|
})
|
|
162286
162388
|
};
|
|
162287
162389
|
}));
|