@stratusjs/angular 0.12.2 → 0.12.4

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.
Files changed (71) hide show
  1. package/dist/angular.bundle.js +25678 -23702
  2. package/dist/angular.bundle.js.map +1 -0
  3. package/dist/angular.bundle.min.js +1 -1
  4. package/package.json +1 -1
  5. package/src/{froala/view/froala-view.module.js → angular.modules.js} +12 -14
  6. package/src/angular.modules.js.map +1 -0
  7. package/src/angular.modules.min.js +1 -0
  8. package/src/base/base.component.min.js +1 -1
  9. package/src/confirm-dialog/confirm-dialog.component.min.js +1 -1
  10. package/src/core/dialog.interface.js.map +1 -0
  11. package/src/editor/citation-dialog.component.min.js +1 -1
  12. package/src/editor/code-view-dialog.component.min.js +1 -1
  13. package/src/editor/editor.component.min.js +1 -1
  14. package/src/editor/link-dialog.component.js +1 -1
  15. package/src/editor/link-dialog.component.js.map +1 -1
  16. package/src/editor/link-dialog.component.min.js +1 -1
  17. package/src/editor/link-dialog.component.ts +1 -1
  18. package/src/editor/media-dialog.component.min.js +1 -1
  19. package/src/froala/plugins/citationManager.min.js +1 -1
  20. package/src/froala/plugins/mediaManager.min.js +1 -1
  21. package/src/froala/plugins/menuButton.min.js +1 -1
  22. package/src/json/json.component.css +2 -0
  23. package/src/json/json.component.css.map +1 -0
  24. package/src/json/json.component.js +257 -0
  25. package/src/json/json.component.js.map +1 -0
  26. package/src/json/json.component.min.css +0 -0
  27. package/src/json/json.component.min.js +1 -0
  28. package/src/material.js +196 -0
  29. package/src/material.js.map +1 -0
  30. package/src/material.min.js +1 -0
  31. package/src/media-selector/media-selector.component.min.js +1 -1
  32. package/src/selector/selector.component.min.js +1 -1
  33. package/src/timezone-selector/timezone-selector.component.min.js +1 -1
  34. package/src/tree/tree-dialog.component.min.js +1 -1
  35. package/src/tree/tree-node.component.min.js +1 -1
  36. package/src/tree/tree.component.min.js +1 -1
  37. package/src/editor/quill-break-blot.plugin.js +0 -38
  38. package/src/editor/quill-break-blot.plugin.js.map +0 -1
  39. package/src/editor/quill-break-blot.plugin.min.js +0 -1
  40. package/src/editor/quill-html-edit.plugin.js +0 -164
  41. package/src/editor/quill-html-edit.plugin.js.map +0 -1
  42. package/src/editor/quill-html-edit.plugin.min.js +0 -1
  43. package/src/editor/quill-image-format.plugin.js +0 -50
  44. package/src/editor/quill-image-format.plugin.js.map +0 -1
  45. package/src/editor/quill-image-format.plugin.min.js +0 -1
  46. package/src/editor/quill-input-button.plugin.js +0 -98
  47. package/src/editor/quill-input-button.plugin.js.map +0 -1
  48. package/src/editor/quill-input-button.plugin.min.js +0 -1
  49. package/src/froala/editor/froala-editor.directive.js +0 -328
  50. package/src/froala/editor/froala-editor.directive.js.map +0 -1
  51. package/src/froala/editor/froala-editor.directive.min.js +0 -1
  52. package/src/froala/editor/froala-editor.module.js +0 -37
  53. package/src/froala/editor/froala-editor.module.js.map +0 -1
  54. package/src/froala/editor/froala-editor.module.min.js +0 -1
  55. package/src/froala/editor/index.js +0 -22
  56. package/src/froala/editor/index.js.map +0 -1
  57. package/src/froala/editor/index.min.js +0 -1
  58. package/src/froala/plugins/image_manager.js +0 -364
  59. package/src/froala/plugins/image_manager.js.map +0 -1
  60. package/src/froala/plugins/image_manager.min.js +0 -1
  61. package/src/froala/view/froala-view.directive.js +0 -49
  62. package/src/froala/view/froala-view.directive.js.map +0 -1
  63. package/src/froala/view/froala-view.directive.min.js +0 -1
  64. package/src/froala/view/froala-view.module.js.map +0 -1
  65. package/src/froala/view/froala-view.module.min.js +0 -1
  66. package/src/froala/view/index.js +0 -22
  67. package/src/froala/view/index.js.map +0 -1
  68. package/src/froala/view/index.min.js +0 -1
  69. package/src/root/root.component.js +0 -43
  70. package/src/root/root.component.js.map +0 -1
  71. package/src/root/root.component.min.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratusjs/angular",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "description": "This is the angular package for StratusJS.",
5
5
  "scripts": {},
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.directive"], function (exports_1, context_1) {
1
+ System.register(["@angular/core", "./editor/editor.component"], function (exports_1, context_1) {
2
2
  "use strict";
3
3
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
4
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6,32 +6,30 @@ System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.di
6
6
  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;
7
7
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8
8
  };
9
- var FroalaViewModule_1, core_1, froala_view_directive_1, FroalaViewModule;
9
+ var core_1, editor_component_1, AngularModules;
10
10
  var __moduleName = context_1 && context_1.id;
11
11
  return {
12
12
  setters: [
13
13
  function (core_1_1) {
14
14
  core_1 = core_1_1;
15
15
  },
16
- function (froala_view_directive_1_1) {
17
- froala_view_directive_1 = froala_view_directive_1_1;
16
+ function (editor_component_1_1) {
17
+ editor_component_1 = editor_component_1_1;
18
18
  }
19
19
  ],
20
20
  execute: function () {
21
- FroalaViewModule = FroalaViewModule_1 = class FroalaViewModule {
22
- static forRoot() {
23
- return { ngModule: FroalaViewModule_1, providers: [] };
24
- }
21
+ AngularModules = class AngularModules {
25
22
  };
26
- FroalaViewModule = FroalaViewModule_1 = __decorate([
23
+ AngularModules = __decorate([
27
24
  core_1.NgModule({
28
- declarations: [froala_view_directive_1.FroalaViewDirective],
29
- exports: [froala_view_directive_1.FroalaViewDirective]
25
+ exports: [
26
+ editor_component_1.EditorComponent,
27
+ ]
30
28
  })
31
- ], FroalaViewModule);
32
- exports_1("FroalaViewModule", FroalaViewModule);
29
+ ], AngularModules);
30
+ exports_1("AngularModules", AngularModules);
33
31
  }
34
32
  };
35
33
  });
36
34
 
37
- //# sourceMappingURL=froala-view.module.js.map
35
+ //# sourceMappingURL=angular.modules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["angular.modules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAsBa,cAAc,GAApB,MAAM,cAAc;aAC1B,CAAA;YADY,cAAc;gBAN1B,eAAQ,CAAC;oBACN,OAAO,EAAE;wBACL,kCAAe;qBAElB;iBACJ,CAAC;eACW,cAAc,CAC1B;;QACD,CAAC","file":"angular.modules.js"}
@@ -0,0 +1 @@
1
+ System.register(["@angular/core","./editor/editor.component"],function(e,t){"use strict";var r,o,n,c=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i};t&&t.id;return{setters:[function(e){r=e},function(e){o=e}],execute:function(){n=class{},n=c([r.NgModule({exports:[o.EditorComponent]})],n),e("AngularModules",n)}}});
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component"],function(t,e){"use strict";var n,o,i,r,s,p,a,u,c,d,f=this&&this.__decorate||function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){i=t},function(t){r=t},function(t){s=t},function(t){p=t}],execute:function(){"@stratusjs/angular",a="base",u=s.cookie("env")?"":".min",c=`${i.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,d=class extends p.RootComponent{sanitizer;ref;elementRef;title=a+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;constructor(t,e,n){super(),this.sanitizer=t,this.ref=e,this.elementRef=n,i.Stratus.Instances[r.default.uniqueId("sa_base_component_")]=this,this.hydrate(this.elementRef,this.sanitizer,["title","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","sanitizer","ref","elementRef","ngOnInit","ngOnChanges","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"])}ngOnInit(){console.info("selector.ngOnInit")}ngOnChanges(){s.cookie("env")&&console.log("inputs:",{target:this.target,targetSuffix:this.targetSuffix,id:this.id,manifest:this.manifest,decouple:this.decouple,direct:this.direct,api:this.api,urlRoot:this.urlRoot})}},f([n.Input(),l("design:type",String)],d.prototype,"target",void 0),f([n.Input(),l("design:type",String)],d.prototype,"targetSuffix",void 0),f([n.Input(),l("design:type",Number)],d.prototype,"id",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"manifest",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"decouple",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"direct",void 0),f([n.Input(),l("design:type",Object)],d.prototype,"api",void 0),f([n.Input(),l("design:type",String)],d.prototype,"urlRoot",void 0),f([n.Input(),l("design:type",String)],d.prototype,"type",void 0),f([n.Input(),l("design:type",String)],d.prototype,"property",void 0),f([n.Input(),l("design:type",String)],d.prototype,"endpoint",void 0),d=f([n.Component({selector:"sa-internal-base",templateUrl:`${c}/${a}/${a}.component${u}.html`}),l("design:paramtypes",[o.DomSanitizer,n.ChangeDetectorRef,n.ElementRef])],d),t("BaseComponent",d)}}});
1
+ System.register(["@angular/core","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component"],function(t,e){"use strict";var n,o,i,r,s,p,a,u,c,d,f=this&&this.__decorate||function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){i=t},function(t){r=t},function(t){s=t},function(t){p=t}],execute:function(){a="base",u=s.cookie("env")?"":".min",c=`${i.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,d=class extends p.RootComponent{sanitizer;ref;elementRef;title=a+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;constructor(t,e,n){super(),this.sanitizer=t,this.ref=e,this.elementRef=n,i.Stratus.Instances[r.default.uniqueId("sa_base_component_")]=this,this.hydrate(this.elementRef,this.sanitizer,["title","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","sanitizer","ref","elementRef","ngOnInit","ngOnChanges","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"])}ngOnInit(){console.info("selector.ngOnInit")}ngOnChanges(){s.cookie("env")&&console.log("inputs:",{target:this.target,targetSuffix:this.targetSuffix,id:this.id,manifest:this.manifest,decouple:this.decouple,direct:this.direct,api:this.api,urlRoot:this.urlRoot})}},f([n.Input(),l("design:type",String)],d.prototype,"target",void 0),f([n.Input(),l("design:type",String)],d.prototype,"targetSuffix",void 0),f([n.Input(),l("design:type",Number)],d.prototype,"id",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"manifest",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"decouple",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"direct",void 0),f([n.Input(),l("design:type",Object)],d.prototype,"api",void 0),f([n.Input(),l("design:type",String)],d.prototype,"urlRoot",void 0),f([n.Input(),l("design:type",String)],d.prototype,"type",void 0),f([n.Input(),l("design:type",String)],d.prototype,"property",void 0),f([n.Input(),l("design:type",String)],d.prototype,"endpoint",void 0),d=f([n.Component({selector:"sa-internal-base",templateUrl:`${c}/${a}/${a}.component${u}.html`}),l("design:paramtypes",[o.DomSanitizer,n.ChangeDetectorRef,n.ElementRef])],d),t("BaseComponent",d)}}});
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/material/dialog","@stratusjs/core/environment","@stratusjs/runtime/stratus"],function(t,e){"use strict";var n,o,a,r,i,s,c,f,l=this&&this.__decorate||function(t,e,n,o){var a,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r<3?a(i):r>3?a(e,n,i):a(e,n))||i);return r>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){a=t},function(t){r=t}],execute:function(){"@stratusjs/angular",i="confirm-dialog",s=a.cookie("env")?"":".min",c=`${r.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,f=class{dialogRef;data;constructor(t,e){this.dialogRef=t,this.data=e}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}},f=l([n.Component({selector:`sa-internal-${i}`,templateUrl:`${c}/${i}/${i}.component${s}.html`}),m(1,n.Inject(o.MAT_DIALOG_DATA)),u("design:paramtypes",[o.MatDialogRef,Object])],f),t("ConfirmDialogComponent",f)}}});
1
+ System.register(["@angular/core","@angular/material/dialog","@stratusjs/core/environment","@stratusjs/runtime/stratus"],function(t,e){"use strict";var n,o,a,r,i,s,c,f,l=this&&this.__decorate||function(t,e,n,o){var a,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r<3?a(i):r>3?a(e,n,i):a(e,n))||i);return r>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){a=t},function(t){r=t}],execute:function(){i="confirm-dialog",s=a.cookie("env")?"":".min",c=`${r.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,f=class{dialogRef;data;constructor(t,e){this.dialogRef=t,this.data=e}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}},f=l([n.Component({selector:`sa-internal-${i}`,templateUrl:`${c}/${i}/${i}.component${s}.html`}),m(1,n.Inject(o.MAT_DIALOG_DATA)),u("design:paramtypes",[o.MatDialogRef,Object])],f),t("ConfirmDialogComponent",f)}}});
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["dialog.interface.ts"],"names":[],"mappings":"","file":"dialog.interface.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,i){"use strict";var e,n,o,a,s,r,c,l,u,g,h,d,f,m,p,C,v=this&&this.__decorate||function(t,i,e,n){var o,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},b=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},y=this&&this.__param||function(t,i){return function(e,n){i(e,n,t)}};i&&i.id;return{setters:[function(t){e=t},function(t){n=t},function(t){o=t},function(t){a=t},function(t){s=t},function(t){r=t},function(t){c=t},function(t){l=t},function(t){u=t},function(t){g=t},function(t){h=t}],execute:function(){"@stratusjs/angular",d="citation-dialog",f="editor",m=l.cookie("env")?"":".min",p=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,C=class extends u.ResponsiveComponent{dialogRef;data;fb;snackBar;iconRegistry;sanitizer;ref;title=d+"_component";Stratus=c.Stratus;dialogCitationForm;popupTitle="Create New Citation";warningMessage;isPopupLoading=!0;formDisabled=!1;model;property;editor;eventManager;baseEditor;highlightedText;newCitation=!0;existingCitationElement;svgIcons={};constructor(t,i,e,n,o,a,s){super(),this.dialogRef=t,this.data=i,this.fb=e,this.snackBar=n,this.iconRegistry=o,this.sanitizer=a,this.ref=s}ngOnInit(){this.uid=r.uniqueId(`sa_${r.snakeCase(d)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${p}${f}/${d}.component${m}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.baseEditor=this.data.eventManager.editor,this.dialogCitationForm=this.fb.group({citationContentInput:new n.FormControl("",[n.Validators.required]),citationTitleInput:new n.FormControl("")}),this.highlightedText=this.baseEditor.selection.text();const t=this.baseEditor.citationManager.getSelectedCitation()||this.baseEditor.citationManager.getLastKnownCitation();if(this.baseEditor.citationManager.hideToolbar(),t){this.newCitation=!1,this.existingCitationElement=t;const i=t.cloneNode(!0);Array.from(i.getElementsByClassName("fr-marker")).forEach(t=>{t.remove()});const e=r.head(i.getElementsByTagName("stratus-citation-content"));e&&this.dialogCitationForm.get("citationContentInput").setValue(e.innerHTML);const n=r.head(i.getElementsByTagName("stratus-citation-title"));n&&this.dialogCitationForm.get("citationTitleInput").setValue(n.innerHTML)}this.newCitation&&!r.isEmpty(this.highlightedText)&&(this.popupTitle="Convert Text into Citation",this.dialogCitationForm.get("citationTitleInput").setValue(this.highlightedText)),this.newCitation||(this.popupTitle="Update Citation"),this.isPopupLoading=!1,this.refresh()}cancel(){this.dialogRef.close(),this.refresh()}confirm(){if(r.isUndefined(this.dialogCitationForm.get("citationContentInput")))return;const t=this.dialogCitationForm.get("citationContentInput").value;if(r.isUndefined(t)||!r.isString(t))return;const i=this.dialogCitationForm.get("citationTitleInput").value,e=this.createCitationHTML(t,i);if(!e)return console.warn(`${d}: unable to build citation for: ${t}`),void this.snackBar.open(`Unable to build citation for: ${t}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"});this.eventManager?(!this.newCitation&&this.existingCitationElement?this.existingCitationElement.outerHTML=e:this.eventManager.trigger("insert",e,this.editor),this.dialogRef.close()):console.warn(`${d}: event manager is not set.`)}createCitationHTML(t,i){return t?`<stratus-citation><stratus-citation-content>${t}</stratus-citation-content>${i=r.isEmpty(i)?"<stratus-citation-notitle/>":`<stratus-citation-title>${i}</stratus-citation-title>`}</stratus-citation-content>`:(console.warn(`${d}: unable to create citation for empty content`),null)}getSvg(t,i){const e=this.addSvgIcon(t,i);return new s.Observable(i=>{this.iconRegistry.getNamedSvgIcon(e).subscribe({error(i){console.error(`getSvg(${t}): ${i}`)},complete(){i.next(e)}})})}addSvgIcon(t,i){if(t in this.svgIcons)return this.svgIcons[t];i||(i={});const e=this.svgIcons[t]=r.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t),i),e}},C=v([e.Component({selector:`sa-internal-${d}`,templateUrl:`${p}/${f}/${d}.component${m}.html`}),y(1,e.Inject(o.MAT_DIALOG_DATA)),b("design:paramtypes",[o.MatDialogRef,Object,n.FormBuilder,a.MatSnackBar,g.MatIconRegistry,h.DomSanitizer,e.ChangeDetectorRef])],C),t("CitationDialogComponent",C)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,i){"use strict";var e,n,o,a,s,r,c,l,u,g,h,d,f,m,p,C,v=this&&this.__decorate||function(t,i,e,n){var o,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},b=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},y=this&&this.__param||function(t,i){return function(e,n){i(e,n,t)}};i&&i.id;return{setters:[function(t){e=t},function(t){n=t},function(t){o=t},function(t){a=t},function(t){s=t},function(t){r=t},function(t){c=t},function(t){l=t},function(t){u=t},function(t){g=t},function(t){h=t}],execute:function(){d="citation-dialog",f="editor",m=l.cookie("env")?"":".min",p=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,C=class extends u.ResponsiveComponent{dialogRef;data;fb;snackBar;iconRegistry;sanitizer;ref;title=d+"_component";Stratus=c.Stratus;dialogCitationForm;popupTitle="Create New Citation";warningMessage;isPopupLoading=!0;formDisabled=!1;model;property;editor;eventManager;baseEditor;highlightedText;newCitation=!0;existingCitationElement;svgIcons={};constructor(t,i,e,n,o,a,s){super(),this.dialogRef=t,this.data=i,this.fb=e,this.snackBar=n,this.iconRegistry=o,this.sanitizer=a,this.ref=s}ngOnInit(){this.uid=r.uniqueId(`sa_${r.snakeCase(d)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${p}${f}/${d}.component${m}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.baseEditor=this.data.eventManager.editor,this.dialogCitationForm=this.fb.group({citationContentInput:new n.FormControl("",[n.Validators.required]),citationTitleInput:new n.FormControl("")}),this.highlightedText=this.baseEditor.selection.text();const t=this.baseEditor.citationManager.getSelectedCitation()||this.baseEditor.citationManager.getLastKnownCitation();if(this.baseEditor.citationManager.hideToolbar(),t){this.newCitation=!1,this.existingCitationElement=t;const i=t.cloneNode(!0);Array.from(i.getElementsByClassName("fr-marker")).forEach(t=>{t.remove()});const e=r.head(i.getElementsByTagName("stratus-citation-content"));e&&this.dialogCitationForm.get("citationContentInput").setValue(e.innerHTML);const n=r.head(i.getElementsByTagName("stratus-citation-title"));n&&this.dialogCitationForm.get("citationTitleInput").setValue(n.innerHTML)}this.newCitation&&!r.isEmpty(this.highlightedText)&&(this.popupTitle="Convert Text into Citation",this.dialogCitationForm.get("citationTitleInput").setValue(this.highlightedText)),this.newCitation||(this.popupTitle="Update Citation"),this.isPopupLoading=!1,this.refresh()}cancel(){this.dialogRef.close(),this.refresh()}confirm(){if(r.isUndefined(this.dialogCitationForm.get("citationContentInput")))return;const t=this.dialogCitationForm.get("citationContentInput").value;if(r.isUndefined(t)||!r.isString(t))return;const i=this.dialogCitationForm.get("citationTitleInput").value,e=this.createCitationHTML(t,i);if(!e)return console.warn(`${d}: unable to build citation for: ${t}`),void this.snackBar.open(`Unable to build citation for: ${t}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"});this.eventManager?(!this.newCitation&&this.existingCitationElement?this.existingCitationElement.outerHTML=e:this.eventManager.trigger("insert",e,this.editor),this.dialogRef.close()):console.warn(`${d}: event manager is not set.`)}createCitationHTML(t,i){return t?`<stratus-citation><stratus-citation-content>${t}</stratus-citation-content>${i=r.isEmpty(i)?"<stratus-citation-notitle/>":`<stratus-citation-title>${i}</stratus-citation-title>`}</stratus-citation-content>`:(console.warn(`${d}: unable to create citation for empty content`),null)}getSvg(t,i){const e=this.addSvgIcon(t,i);return new s.Observable(i=>{this.iconRegistry.getNamedSvgIcon(e).subscribe({error(i){console.error(`getSvg(${t}): ${i}`)},complete(){i.next(e)}})})}addSvgIcon(t,i){if(t in this.svgIcons)return this.svgIcons[t];i||(i={});const e=this.svgIcons[t]=r.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t),i),e}},C=v([e.Component({selector:`sa-internal-${d}`,templateUrl:`${p}/${f}/${d}.component${m}.html`}),y(1,e.Inject(o.MAT_DIALOG_DATA)),b("design:paramtypes",[o.MatDialogRef,Object,n.FormBuilder,a.MatSnackBar,g.MatIconRegistry,h.DomSanitizer,e.ChangeDetectorRef])],C),t("CitationDialogComponent",C)}}});
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/cdk/text-field","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component"],function(t,e){"use strict";var o,n,s,a,i,r,c,u,l,f,d,p,h,g,m=this&&this.__decorate||function(t,e,o,n){var s,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},y=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},C=this&&this.__param||function(t,e){return function(o,n){e(o,n,t)}};e&&e.id;return{setters:[function(t){o=t},function(t){n=t},function(t){s=t},function(t){a=t},function(t){i=t},function(t){r=t},function(t){c=t},function(t){u=t},function(t){l=t}],execute:function(){"@stratusjs/angular",f="code-view-dialog",d="editor",p=u.cookie("env")?"":".min",h=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,g=class extends l.ResponsiveComponent{dialogRef;data;ref;fb;ngZone;title=f+"_component";_=r.default;Stratus=c.Stratus;form=this.fb.group({dataString:new n.FormControl});model;property;monacoOptions={theme:"vs-dark",language:"html"};autosize;constructor(t,e,o,n,s){super(),this.dialogRef=t,this.data=e,this.ref=o,this.fb=n,this.ngZone=s}ngOnInit(){this.uid=r.default.uniqueId(`sa_${r.default.snakeCase(f)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${h}/${d}/${f}.component${p}.css`),this.model=this.data.model,this.property=this.data.property;const t=this.form.get("dataString");t.patchValue(this.model.get(this.property)),t.valueChanges.forEach(t=>{this.model.completed&&(null===t&&(t=""),this.model.set(this.property,t))}),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}triggerResize(){this.ngZone.onStable.pipe(i.take(1)).subscribe(()=>this.autosize.resizeToFitContent(!0))}},m([o.ViewChild("autosize"),y("design:type",a.CdkTextareaAutosize)],g.prototype,"autosize",void 0),g=m([o.Component({selector:`sa-internal-${f}`,templateUrl:`${h}/${d}/${f}.component${p}.html`}),C(1,o.Inject(s.MAT_DIALOG_DATA)),y("design:paramtypes",[s.MatDialogRef,Object,o.ChangeDetectorRef,n.FormBuilder,o.NgZone])],g),t("CodeViewDialogComponent",g)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/cdk/text-field","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component"],function(t,e){"use strict";var o,n,s,i,r,a,c,u,l,f,d,p,h,g,m=this&&this.__decorate||function(t,e,o,n){var s,i=arguments.length,r=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r},y=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},C=this&&this.__param||function(t,e){return function(o,n){e(o,n,t)}};e&&e.id;return{setters:[function(t){o=t},function(t){n=t},function(t){s=t},function(t){i=t},function(t){r=t},function(t){a=t},function(t){c=t},function(t){u=t},function(t){l=t}],execute:function(){f="code-view-dialog",d="editor",p=u.cookie("env")?"":".min",h=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,g=class extends l.ResponsiveComponent{dialogRef;data;ref;fb;ngZone;title=f+"_component";_=a.default;Stratus=c.Stratus;form=this.fb.group({dataString:new n.FormControl});model;property;monacoOptions={theme:"vs-dark",language:"html"};autosize;constructor(t,e,o,n,s){super(),this.dialogRef=t,this.data=e,this.ref=o,this.fb=n,this.ngZone=s}ngOnInit(){this.uid=a.default.uniqueId(`sa_${a.default.snakeCase(f)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${h}/${d}/${f}.component${p}.css`),this.model=this.data.model,this.property=this.data.property;const t=this.form.get("dataString");t.patchValue(this.model.get(this.property)),t.valueChanges.forEach(t=>{this.model.completed&&(null===t&&(t=""),this.model.set(this.property,t))}),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}triggerResize(){this.ngZone.onStable.pipe(r.take(1)).subscribe(()=>this.autosize.resizeToFitContent(!0))}},m([o.ViewChild("autosize"),y("design:type",i.CdkTextareaAutosize)],g.prototype,"autosize",void 0),g=m([o.Component({selector:`sa-internal-${f}`,templateUrl:`${h}/${d}/${f}.component${p}.html`}),C(1,o.Inject(s.MAT_DIALOG_DATA)),y("design:paramtypes",[s.MatDialogRef,Object,o.ChangeDetectorRef,n.FormBuilder,o.NgZone])],g),t("CodeViewDialogComponent",g)}}});
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","rxjs","rxjs/operators","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","../core/root.component","./citation-dialog.component","./link-dialog.component","./media-dialog.component","./code-view-dialog.component","./code-mirror-bridge","@stratusjs/angularjs/services/registry","@stratusjs/core/environment","@stratusjs/core/events/eventManager","html2pdf","font-awesome","froala-plugins","froala-embedly","froala-font-awesome","froala-image-tui","../froala/plugins/citationManager","../froala/plugins/linkManager","../froala/plugins/mediaManager","codemirror","@codemirror/lang-html","@codemirror/theme-one-dark"],function(e,t){"use strict";var i,a,o,n,r,s,l,d,c,u,g,m,p,h,f,b,v,y,k,w,x,S,C,D,E,M,T=this&&this.__decorate||function(e,t,i,a){var o,n=arguments.length,r=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},R=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){o=e},function(e){n=e},function(e){r=e},function(e){s=e},function(e){l=e},function(e){d=e},function(e){c=e},function(e){u=e},function(e){g=e},function(e){m=e},function(e){p=e},function(e){h=e},function(e){f=e},function(e){b=e},function(e){v=e},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){y=e},function(e){k=e},function(e){w=e}],execute:function(){"@stratusjs/angular","froala-editor",x="editor",S=b.cookie("env")?"":".min",C=`${l.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^\/]*$/,"").replace(/\/dist\/$/,"/src/")}`,D=`${l.Stratus.BaseUrl}${boot.configuration.paths["froala-editor"].replace(/js\/[^\/]*$/,"")}`,E=(e,t)=>d.default.has(e,t)&&!d.default.isEmpty(d.default.get(e,t)),M=class extends c.RootComponent{sanitizer;ref;elementRef;fb;dialog;title=`${x}_component`;dev=!!b.cookie("env");debug=!!b.cookie(`debug_${x}`);editor="froala";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;property;classes;_=d.default;has=E;log=console.log;Stratus=l.Stratus;registry=new f.Registry;fetched;data;collection;model;dataSub;onChange=new n.Subject;subscriber;svgIcons={};initialized=!1;styled=!1;blurred=!1;focused=!1;codeViewIsOpen;form=this.fb.group({dataString:new a.FormControl});dataChangeLog=[];incomingData="";outgoingData="";debounceSave=!0;debounceTime=5e3;forceSave=!1;froalaEditorDirective;froalaStandardButtons={moreText:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle","clearFormatting"],moreParagraph:["linkManager","formatOL","formatUL","indent","outdent","quote","paragraphFormat","paragraphStyle","alignLeft","alignCenter","alignRight","alignJustify"],moreRich:["mediaManager","insertTable","insertImage","insertVideo","insertFile","citationInsert","insertHR","specialCharacters"],moreMisc:["html","undo","redo","fullscreen","print","selectAll","help"]};froalaConfig={attribution:!1,key:l.Stratus.Environment.get("froalaKey"),zIndex:9999,events:{initialized:e=>{this.froalaEditorDirective=e},blur:e=>this.onBlur(e),focus:e=>this.onFocus(e)},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:'["p", "h1", "h2", "h3", "h4", "h5", "h6", "blockquote", "pre", "ul", "ol", "table", "dl"]',brace_style:"expand",indent_char:" ",indent_size:4,wrap_line_length:0},codeMirror:{fromTextArea:(e,t)=>{const i=[y.basicSetup,y.EditorView.lineWrapping,k.html({})];return b.cookie("dark")&&i.push(w.oneDarkTheme),new h.CodeMirrorBridge({extensions:i}).fromTextArea(e,t)}},codeMirrorOptions:{indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,mode:"text/html",tabMode:"space",tabSize:4},fileInsertButtons:["fileBack"],fileUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma",'"Times New Roman",Times,serif':"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},heightMax:window.innerHeight||document.documentElement.clientHeight||500,htmlAllowedAttrs:["aria-.+","data-.+","ng-.+","stratus-.+","sa-.+","accept","accept-charset","accesskey","action","align","allow","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap","xmlns","xmlns:xlink","accent-height","accumulate","additive","alignment-baseline","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clipPathUnits","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","crossorigin","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fr","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","marker-mid","marker-start","markerHeight","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","panose-1","paint-order","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","text-rendering","textLength","to","transform","transform-origin","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","viewBox","viewTarget","visibility","widths","word-spacing","writing-mode","x","x-height","x1","x2","xChannelSelector","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y","y1","y2","yChannelSelector","z","zoomAndPan"],htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script","form","hr","div","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","stratus-base","stratus-calculator-mortgage","stratus-calendar","stratus-citation","stratus-citation-notitle","stratus-contact-form","stratus-content-selector","stratus-date-time","stratus-delete","stratus-error-message","stratus-facebook","stratus-filter","stratus-help","stratus-idx-disclaimer","stratus-idx-map","stratus-idx-member-details","stratus-idx-member-list","stratus-idx-member-search","stratus-idx-office-list","stratus-idx-office-search","stratus-idx-property-details","stratus-idx-property-details-sub-section","stratus-idx-property-list","stratus-idx-property-search","stratus-image-carousel","stratus-json-editor","stratus-media-details","stratus-media-drag-drop","stratus-media-library","stratus-media-selector","stratus-media-short-details","stratus-media-uploader","stratus-open-houses","stratus-option-value","stratus-pagination","stratus-password-reset","stratus-permissions","stratus-proposal-alert","stratus-publish","stratus-role","stratus-search","stratus-single-sign-on","stratus-social-media","stratus-sort","stratus-swiper-carousel","stratus-tag","stratus-theme-selector","stratus-twitter-feed","stratus-user-authentication","stratus-user-selector","stratus-visual-selector","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree"],htmlAllowedStyleProps:[".*"],htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree","stratus-.+"],htmlRemoveTags:[],htmlSimpleAmpersand:!1,imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageUpload:!0,imageUploadRemoteUrls:!0,imageUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),imageManagerPageSize:20,imageManagerScrollOffset:10,imageManagerLoadMethod:"GET",imageManagerLoadURL:"/Api/Media?payload-only=true",linkEditButtons:["linkOpen","linkRemove"],linkInsertButtons:["linkBack"],multiLine:!0,paragraphStyles:{btn:"Button",header:"Header",title:"Title","alt-title":"Alt Title (over)",subtitle:"Subtitle",pullout:"Pullout Quote"},pasteDeniedAttrs:["id","class","style","dir","data-.+","aria-.+","ng-.+","stratus-.+","sa-.+"],pasteDeniedTags:["form","input","label","style"],pastePlain:!1,pluginsEnabled:["align","charCounter","codeBeautifier","codeView","colors","draggable","embedly","entities","file","fontAwesome","fontFamily","fontSize","fullscreen","help","image","imageTUI","inlineStyle","inlineClass","lineBreaker","link","linkManager","citationManager","lists","mediaManager","paragraphFormat","paragraphStyle","print","quickInsert","quote","save","specialCharacters","table","url","video","wordPaste"],quickInsertButtons:["media","link","video","embedly","table","ul","ol","hr"],scrollableContainer:l.Stratus.Environment.get("viewPort")||"body",spellcheck:!0,theme:b.cookie("dark")?"dark":null,toolbarSticky:!0,toolbarButtons:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:8},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:1},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:1}},toolbarButtonsSM:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:3},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},toolbarButtonsXS:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:0},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:0},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},useClasses:!0,videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoUpload:!0,videoUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY")};constructor(e,t,i,a,o){super(),this.sanitizer=e,this.ref=t,this.elementRef=i,this.fb=a,this.dialog=o,this.uid=d.default.uniqueId(`sa_${d.default.snakeCase(x)}_component_`),l.Stratus.Instances[this.uid]=this,l.Stratus.Internals.LoadCss([`${C}${x}/${x}.component${S}.css`,`${D}css/froala_editor.pkgd${S}.css`,`${D}css/themes/dark${S}.css`,`${D}css/third_party/embedly${S}.css`,`${D}css/third_party/font_awesome${S}.css`,`${D}css/third_party/image_tui${S}.css`]).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.error(e),console.warn("Issue detected in CSS Loader for Component:",this.uid),this.styled=!0,this.refresh()}),this.hydrate(i,e,["title","dev","debug","editor","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","property","classes","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","initialized","styled","blurred","focused","codeViewIsOpen","form","dataChangeLog","incomingData","outgoingData","debounceSave","debounceTime","forceSave","froalaEditorDirective","froalaStandardButtons","froalaConfig","sanitizer","ref","elementRef","fb","dialog","ngOnInit","modelSave","listDuplicates","normalizeIn","normalizeOut","changeImgSize","handleError","fetchData","dataDefer","dataRef","onDataChange","created","changedEditor","onChangeEvent","onFocus","onBlur","bypassHTML","trigger","openCitationDialog","openLinkDialog","openMediaDialog","openCodeViewDialog","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(e=>{if(!(e&&e instanceof v.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&(this.dataDefer(this.subscriber),this.codeViewIsOpen)};e.on("change",t),t()}),this.dataSub=new n.Observable(e=>(this.dev&&console.warn(`[observable] creating subscriber on ${this.uid}`,e),this.dataDefer(e))),this.dataSub.pipe(r.debounce(()=>n.timer(250)),r.catchError(this.handleError)).subscribe(e=>{if(this.focused)return void(this.dev&&console.warn(`[subscriber] waiting on updates due to focus on ${this.uid}`));const t=this.form.get("dataString");t.value!==e?(t.patchValue(e),this.refresh()):this.initialized&&this.refresh()})}ngOnInit(){this.initialized=!0,d.default.isUndefined(this.classes)||(this.froalaConfig.inlineClasses=this.classes);const e=this.form.get("dataString");this.debounceSave?(e.valueChanges.pipe(r.debounce(()=>n.timer(this.debounceTime)),r.catchError(this.handleError)).subscribe(e=>this.modelSave(e)),e.valueChanges.pipe(r.debounce(()=>n.timer(250)),r.catchError(this.handleError)).subscribe(e=>{this.model.changedExternal||(this.model.changedExternal=!0,this.model.trigger("change"))}),e.valueChanges.forEach(e=>this.outgoingData=e)):e.valueChanges.forEach(e=>this.modelSave(e)),this.dev&&this.listDuplicates(this.froalaConfig)}modelSave(e){if(!this.model)return void console.warn("There is no model for sa-editor to save to",this);if(!this.model.completed)return;let t=null;!this.froalaConfig.useClasses&&this.froalaEditorDirective&&this.froalaEditorDirective.getEditor()&&this.froalaEditorDirective.getEditor().el&&this.froalaEditorDirective.getEditor().el.innerHTML&&(t=this.froalaEditorDirective.getEditor().el.innerHTML),this.model.set(this.property,this.normalizeOut(t||e)),this.debounceSave&&(this.model.changedExternal=!1),this.forceSave&&!d.default.isEmpty(this.model.getIdentifier())&&this.model.save()}listDuplicates(e){return d.default.forEach(e,(e,t)=>{if(!d.default.isArray(e))return;const i={};e.forEach(e=>i[e]=(i[e]||0)+1);const a=d.default.filter(d.default.map(i,(e,t)=>e>1?t:null));a.length&&console.warn("Froala Config:",t,"has duplicates:",a)}),e}normalizeIn(e){return e&&d.default.isString(e)?this.changeImgSize(e,"hq"):""}normalizeOut(e){return null===e?"":d.default.isString(e)?this.changeImgSize(e,"xs"):e}changeImgSize(e,t){if(!e||!d.default.isString(e))return e;if(!t||!d.default.isString(t))return e;const i=/<img([\w\W]+?)>/gi;let a;for(;a=i.exec(e);){const i=a[0];if(i.includes("data:image"))continue;const o=/^<img\s(.+?)(-[A-Z]{2})?\.(?=[^.]*$)(.+)>/gi.exec(i);if(null!==o)if(i.includes("data-stratus-src"))e=e.replace(i,`<img ${o[1]}-${t}.${o[3]}>`);else{if(!i.includes("cdn.sitetheory.io"))continue;if(d.default.isEmpty(o[2]))continue;e=e.replace(i,`<img data-stratus-src ${o[1]}-${t}.${o[3]}>`)}else console.warn("Unable to find file name for image src:",i)}return e}handleError(e){return console.error(e),e}async fetchData(){return this.fetched?this.fetched:this.fetched=await this.registry.fetch(l.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber)return this.dev&&console.warn(`[defer] debouncing due to empty subscriber on ${this.uid}`),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250);const t=d.default.clone(this.incomingData),i=this.dataRef();return t!==i?i||this.data&&this.data.completed?void((this.froalaConfig.useClasses||t!==i)&&(this.dev&&console.warn(`[subscriber] new value submitted on ${this.uid}:`,i),this.subscriber.next(i))):(this.dev&&console.warn(`[defer] debouncing subscriber due to unavailable data on ${this.uid}`,this.data),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250)):void 0}dataRef(){return this.model?this.incomingData=this.normalizeIn(this.model.get(this.property)):""}onDataChange(){this.dataDefer(this.subscriber),this.refresh()}created(){}changedEditor(e){console.log("editor-change:",e)}onChangeEvent(e){console.log("change:",e)}onFocus(e){this.dev&&this.debug&&console.warn(`[onFocus] triggered on ${this.uid}`),this.focused=!0,this.blurred=!1}onBlur(e){this.dev&&this.debug&&console.warn(`[onBlur] triggered on ${this.uid}`),this.focused=!1,this.blurred=!0,this.debounceSave&&this.modelSave(this.outgoingData)}bypassHTML(e){return this.sanitizer.bypassSecurityTrustHtml(e)}trigger(e,t,i){this.dev&&this.debug&&console.log("editor.trigger:",e,i),"media-library"===e?this.openMediaDialog(i):"citation-input"===e?this.openCitationDialog(i):"link-library"===e?this.openLinkDialog(i,t):"code-view"===e&&this.openCodeViewDialog()}openCitationDialog(e){const t=this.dialog.open(u.CitationDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}}),i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("citation dialog result:",e))})}openLinkDialog(e,t){const i=this.dialog.open(g.LinkDialogComponent,{width:"500px",data:{editor:this,eventManager:e,element:t,form:this.form,model:this.model,property:this.property}});this.refresh();const a=this;i.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(a.refresh(),this.dev&&e&&console.log("link dialog result:",e))})}openMediaDialog(e){const t=this.dialog.open(m.MediaDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}});this.refresh();const i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("media dialog result:",e))})}openCodeViewDialog(){this.codeViewIsOpen=!0;const e=this.dialog.open(p.CodeViewDialogComponent,{width:"1000px",data:{form:this.form,model:this.model,property:this.property}});this.refresh(),e.afterClosed().subscribe(e=>{this.codeViewIsOpen=!1,e&&!d.default.isEmpty(e)&&(this.refresh(),this.dev&&e&&console.log("code view dialog result:",e))})}},T([i.Input(),R("design:type",String)],M.prototype,"target",void 0),T([i.Input(),R("design:type",String)],M.prototype,"targetSuffix",void 0),T([i.Input(),R("design:type",Number)],M.prototype,"id",void 0),T([i.Input(),R("design:type",Boolean)],M.prototype,"manifest",void 0),T([i.Input(),R("design:type",Boolean)],M.prototype,"decouple",void 0),T([i.Input(),R("design:type",Boolean)],M.prototype,"direct",void 0),T([i.Input(),R("design:type",Object)],M.prototype,"api",void 0),T([i.Input(),R("design:type",String)],M.prototype,"urlRoot",void 0),T([i.Input(),R("design:type",String)],M.prototype,"property",void 0),T([i.Input(),R("design:type",Object)],M.prototype,"classes",void 0),M=T([i.Component({selector:`sa-internal-${x}`,templateUrl:`${C}/${x}/${x}.component${S}.html`}),R("design:paramtypes",[s.DomSanitizer,i.ChangeDetectorRef,i.ElementRef,a.FormBuilder,o.MatDialog])],M),e("EditorComponent",M)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","rxjs","rxjs/operators","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","../core/root.component","./citation-dialog.component","./link-dialog.component","./media-dialog.component","./code-view-dialog.component","./code-mirror-bridge","@stratusjs/angularjs/services/registry","@stratusjs/core/environment","@stratusjs/core/events/eventManager","html2pdf","font-awesome","froala-plugins","froala-embedly","froala-font-awesome","froala-image-tui","../froala/plugins/citationManager","../froala/plugins/linkManager","../froala/plugins/mediaManager","codemirror","@codemirror/lang-html","@codemirror/theme-one-dark"],function(e,t){"use strict";var i,a,n,o,r,s,l,d,c,u,g,m,p,h,f,b,v,y,k,w,x,S,C,D,E,M,T=this&&this.__decorate||function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},R=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){n=e},function(e){o=e},function(e){r=e},function(e){s=e},function(e){l=e},function(e){d=e},function(e){c=e},function(e){u=e},function(e){g=e},function(e){m=e},function(e){p=e},function(e){h=e},function(e){f=e},function(e){b=e},function(e){v=e},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){y=e},function(e){k=e},function(e){w=e}],execute:function(){x="editor",S=b.cookie("env")?"":".min",C=`${l.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^\/]*$/,"").replace(/\/dist\/$/,"/src/")}`,D=`${l.Stratus.BaseUrl}${boot.configuration.paths["froala-editor"].replace(/js\/[^\/]*$/,"")}`,E=(e,t)=>d.default.has(e,t)&&!d.default.isEmpty(d.default.get(e,t)),M=class extends c.RootComponent{sanitizer;ref;elementRef;fb;dialog;title=`${x}_component`;dev=!!b.cookie("env");debug=!!b.cookie(`debug_${x}`);editor="froala";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;property;classes;_=d.default;has=E;log=console.log;Stratus=l.Stratus;registry=new f.Registry;fetched;data;collection;model;dataSub;onChange=new o.Subject;subscriber;svgIcons={};initialized=!1;styled=!1;blurred=!1;focused=!1;codeViewIsOpen;form=this.fb.group({dataString:new a.FormControl});dataChangeLog=[];incomingData="";outgoingData="";debounceSave=!0;debounceTime=5e3;forceSave=!1;froalaEditorDirective;froalaStandardButtons={moreText:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle","clearFormatting"],moreParagraph:["linkManager","formatOL","formatUL","indent","outdent","quote","paragraphFormat","paragraphStyle","alignLeft","alignCenter","alignRight","alignJustify"],moreRich:["mediaManager","insertTable","insertImage","insertVideo","insertFile","citationInsert","insertHR","specialCharacters"],moreMisc:["html","undo","redo","fullscreen","print","selectAll","help"]};froalaConfig={attribution:!1,key:l.Stratus.Environment.get("froalaKey"),zIndex:9999,events:{initialized:e=>{this.froalaEditorDirective=e},blur:e=>this.onBlur(e),focus:e=>this.onFocus(e)},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:'["p", "h1", "h2", "h3", "h4", "h5", "h6", "blockquote", "pre", "ul", "ol", "table", "dl"]',brace_style:"expand",indent_char:" ",indent_size:4,wrap_line_length:0},codeMirror:{fromTextArea:(e,t)=>{const i=[y.basicSetup,y.EditorView.lineWrapping,k.html({})];return b.cookie("dark")&&i.push(w.oneDarkTheme),new h.CodeMirrorBridge({extensions:i}).fromTextArea(e,t)}},codeMirrorOptions:{indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,mode:"text/html",tabMode:"space",tabSize:4},fileInsertButtons:["fileBack"],fileUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma",'"Times New Roman",Times,serif':"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},heightMax:window.innerHeight||document.documentElement.clientHeight||500,htmlAllowedAttrs:["aria-.+","data-.+","ng-.+","stratus-.+","sa-.+","accept","accept-charset","accesskey","action","align","allow","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap","xmlns","xmlns:xlink","accent-height","accumulate","additive","alignment-baseline","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clipPathUnits","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","crossorigin","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fr","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","marker-mid","marker-start","markerHeight","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","panose-1","paint-order","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","text-rendering","textLength","to","transform","transform-origin","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","viewBox","viewTarget","visibility","widths","word-spacing","writing-mode","x","x-height","x1","x2","xChannelSelector","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y","y1","y2","yChannelSelector","z","zoomAndPan"],htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script","form","hr","div","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","stratus-base","stratus-calculator-mortgage","stratus-calendar","stratus-citation","stratus-citation-notitle","stratus-contact-form","stratus-content-selector","stratus-date-time","stratus-delete","stratus-error-message","stratus-facebook","stratus-filter","stratus-help","stratus-idx-disclaimer","stratus-idx-map","stratus-idx-member-details","stratus-idx-member-list","stratus-idx-member-search","stratus-idx-office-list","stratus-idx-office-search","stratus-idx-property-details","stratus-idx-property-details-sub-section","stratus-idx-property-list","stratus-idx-property-search","stratus-image-carousel","stratus-json-editor","stratus-media-details","stratus-media-drag-drop","stratus-media-library","stratus-media-selector","stratus-media-short-details","stratus-media-uploader","stratus-open-houses","stratus-option-value","stratus-pagination","stratus-password-reset","stratus-permissions","stratus-proposal-alert","stratus-publish","stratus-role","stratus-search","stratus-single-sign-on","stratus-social-media","stratus-sort","stratus-swiper-carousel","stratus-tag","stratus-theme-selector","stratus-twitter-feed","stratus-user-authentication","stratus-user-selector","stratus-visual-selector","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree"],htmlAllowedStyleProps:[".*"],htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree","stratus-.+"],htmlRemoveTags:[],htmlSimpleAmpersand:!1,imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageUpload:!0,imageUploadRemoteUrls:!0,imageUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),imageManagerPageSize:20,imageManagerScrollOffset:10,imageManagerLoadMethod:"GET",imageManagerLoadURL:"/Api/Media?payload-only=true",linkEditButtons:["linkOpen","linkRemove"],linkInsertButtons:["linkBack"],multiLine:!0,paragraphStyles:{btn:"Button",header:"Header",title:"Title","alt-title":"Alt Title (over)",subtitle:"Subtitle",pullout:"Pullout Quote"},pasteDeniedAttrs:["id","class","style","dir","data-.+","aria-.+","ng-.+","stratus-.+","sa-.+"],pasteDeniedTags:["form","input","label","style"],pastePlain:!1,pluginsEnabled:["align","charCounter","codeBeautifier","codeView","colors","draggable","embedly","entities","file","fontAwesome","fontFamily","fontSize","fullscreen","help","image","imageTUI","inlineStyle","inlineClass","lineBreaker","link","linkManager","citationManager","lists","mediaManager","paragraphFormat","paragraphStyle","print","quickInsert","quote","save","specialCharacters","table","url","video","wordPaste"],quickInsertButtons:["media","link","video","embedly","table","ul","ol","hr"],scrollableContainer:l.Stratus.Environment.get("viewPort")||"body",spellcheck:!0,theme:b.cookie("dark")?"dark":null,toolbarSticky:!0,toolbarButtons:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:8},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:1},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:1}},toolbarButtonsSM:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:3},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},toolbarButtonsXS:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:0},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:0},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},useClasses:!0,videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoUpload:!0,videoUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY")};constructor(e,t,i,a,n){super(),this.sanitizer=e,this.ref=t,this.elementRef=i,this.fb=a,this.dialog=n,this.uid=d.default.uniqueId(`sa_${d.default.snakeCase(x)}_component_`),l.Stratus.Instances[this.uid]=this,l.Stratus.Internals.LoadCss([`${C}${x}/${x}.component${S}.css`,`${D}css/froala_editor.pkgd${S}.css`,`${D}css/themes/dark${S}.css`,`${D}css/third_party/embedly${S}.css`,`${D}css/third_party/font_awesome${S}.css`,`${D}css/third_party/image_tui${S}.css`]).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.error(e),console.warn("Issue detected in CSS Loader for Component:",this.uid),this.styled=!0,this.refresh()}),this.hydrate(i,e,["title","dev","debug","editor","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","property","classes","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","initialized","styled","blurred","focused","codeViewIsOpen","form","dataChangeLog","incomingData","outgoingData","debounceSave","debounceTime","forceSave","froalaEditorDirective","froalaStandardButtons","froalaConfig","sanitizer","ref","elementRef","fb","dialog","ngOnInit","modelSave","listDuplicates","normalizeIn","normalizeOut","changeImgSize","handleError","fetchData","dataDefer","dataRef","onDataChange","created","changedEditor","onChangeEvent","onFocus","onBlur","bypassHTML","trigger","openCitationDialog","openLinkDialog","openMediaDialog","openCodeViewDialog","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(e=>{if(!(e&&e instanceof v.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&(this.dataDefer(this.subscriber),this.codeViewIsOpen)};e.on("change",t),t()}),this.dataSub=new o.Observable(e=>(this.dev&&console.warn(`[observable] creating subscriber on ${this.uid}`,e),this.dataDefer(e))),this.dataSub.pipe(r.debounce(()=>o.timer(250)),r.catchError(this.handleError)).subscribe(e=>{if(this.focused)return void(this.dev&&console.warn(`[subscriber] waiting on updates due to focus on ${this.uid}`));const t=this.form.get("dataString");t.value!==e?(t.patchValue(e),this.refresh()):this.initialized&&this.refresh()})}ngOnInit(){this.initialized=!0,d.default.isUndefined(this.classes)||(this.froalaConfig.inlineClasses=this.classes);const e=this.form.get("dataString");this.debounceSave?(e.valueChanges.pipe(r.debounce(()=>o.timer(this.debounceTime)),r.catchError(this.handleError)).subscribe(e=>this.modelSave(e)),e.valueChanges.pipe(r.debounce(()=>o.timer(250)),r.catchError(this.handleError)).subscribe(e=>{this.model.changedExternal||(this.model.changedExternal=!0,this.model.trigger("change"))}),e.valueChanges.forEach(e=>this.outgoingData=e)):e.valueChanges.forEach(e=>this.modelSave(e)),this.dev&&this.listDuplicates(this.froalaConfig)}modelSave(e){if(!this.model)return void console.warn("There is no model for sa-editor to save to",this);if(!this.model.completed)return;let t=null;!this.froalaConfig.useClasses&&this.froalaEditorDirective&&this.froalaEditorDirective.getEditor()&&this.froalaEditorDirective.getEditor().el&&this.froalaEditorDirective.getEditor().el.innerHTML&&(t=this.froalaEditorDirective.getEditor().el.innerHTML),this.model.set(this.property,this.normalizeOut(t||e)),this.debounceSave&&(this.model.changedExternal=!1),this.forceSave&&!d.default.isEmpty(this.model.getIdentifier())&&this.model.save()}listDuplicates(e){return d.default.forEach(e,(e,t)=>{if(!d.default.isArray(e))return;const i={};e.forEach(e=>i[e]=(i[e]||0)+1);const a=d.default.filter(d.default.map(i,(e,t)=>e>1?t:null));a.length&&console.warn("Froala Config:",t,"has duplicates:",a)}),e}normalizeIn(e){return e&&d.default.isString(e)?this.changeImgSize(e,"hq"):""}normalizeOut(e){return null===e?"":d.default.isString(e)?this.changeImgSize(e,"xs"):e}changeImgSize(e,t){if(!e||!d.default.isString(e))return e;if(!t||!d.default.isString(t))return e;const i=/<img([\w\W]+?)>/gi;let a;for(;a=i.exec(e);){const i=a[0];if(i.includes("data:image"))continue;const n=/^<img\s(.+?)(-[A-Z]{2})?\.(?=[^.]*$)(.+)>/gi.exec(i);if(null!==n)if(i.includes("data-stratus-src"))e=e.replace(i,`<img ${n[1]}-${t}.${n[3]}>`);else{if(!i.includes("cdn.sitetheory.io"))continue;if(d.default.isEmpty(n[2]))continue;e=e.replace(i,`<img data-stratus-src ${n[1]}-${t}.${n[3]}>`)}else console.warn("Unable to find file name for image src:",i)}return e}handleError(e){return console.error(e),e}async fetchData(){return this.fetched?this.fetched:this.fetched=await this.registry.fetch(l.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber)return this.dev&&console.warn(`[defer] debouncing due to empty subscriber on ${this.uid}`),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250);const t=d.default.clone(this.incomingData),i=this.dataRef();return t!==i?i||this.data&&this.data.completed?void((this.froalaConfig.useClasses||t!==i)&&(this.dev&&console.warn(`[subscriber] new value submitted on ${this.uid}:`,i),this.subscriber.next(i))):(this.dev&&console.warn(`[defer] debouncing subscriber due to unavailable data on ${this.uid}`,this.data),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250)):void 0}dataRef(){return this.model?this.incomingData=this.normalizeIn(this.model.get(this.property)):""}onDataChange(){this.dataDefer(this.subscriber),this.refresh()}created(){}changedEditor(e){console.log("editor-change:",e)}onChangeEvent(e){console.log("change:",e)}onFocus(e){this.dev&&this.debug&&console.warn(`[onFocus] triggered on ${this.uid}`),this.focused=!0,this.blurred=!1}onBlur(e){this.dev&&this.debug&&console.warn(`[onBlur] triggered on ${this.uid}`),this.focused=!1,this.blurred=!0,this.debounceSave&&this.modelSave(this.outgoingData)}bypassHTML(e){return this.sanitizer.bypassSecurityTrustHtml(e)}trigger(e,t,i){this.dev&&this.debug&&console.log("editor.trigger:",e,i),"media-library"===e?this.openMediaDialog(i):"citation-input"===e?this.openCitationDialog(i):"link-library"===e?this.openLinkDialog(i,t):"code-view"===e&&this.openCodeViewDialog()}openCitationDialog(e){const t=this.dialog.open(u.CitationDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}}),i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("citation dialog result:",e))})}openLinkDialog(e,t){const i=this.dialog.open(g.LinkDialogComponent,{width:"500px",data:{editor:this,eventManager:e,element:t,form:this.form,model:this.model,property:this.property}});this.refresh();const a=this;i.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(a.refresh(),this.dev&&e&&console.log("link dialog result:",e))})}openMediaDialog(e){const t=this.dialog.open(m.MediaDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}});this.refresh();const i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("media dialog result:",e))})}openCodeViewDialog(){this.codeViewIsOpen=!0;const e=this.dialog.open(p.CodeViewDialogComponent,{width:"1000px",data:{form:this.form,model:this.model,property:this.property}});this.refresh(),e.afterClosed().subscribe(e=>{this.codeViewIsOpen=!1,e&&!d.default.isEmpty(e)&&(this.refresh(),this.dev&&e&&console.log("code view dialog result:",e))})}},T([i.Input(),R("design:type",String)],M.prototype,"target",void 0),T([i.Input(),R("design:type",String)],M.prototype,"targetSuffix",void 0),T([i.Input(),R("design:type",Number)],M.prototype,"id",void 0),T([i.Input(),R("design:type",Boolean)],M.prototype,"manifest",void 0),T([i.Input(),R("design:type",Boolean)],M.prototype,"decouple",void 0),T([i.Input(),R("design:type",Boolean)],M.prototype,"direct",void 0),T([i.Input(),R("design:type",Object)],M.prototype,"api",void 0),T([i.Input(),R("design:type",String)],M.prototype,"urlRoot",void 0),T([i.Input(),R("design:type",String)],M.prototype,"property",void 0),T([i.Input(),R("design:type",Object)],M.prototype,"classes",void 0),M=T([i.Component({selector:`sa-internal-${x}`,templateUrl:`${C}/${x}/${x}.component${S}.html`}),R("design:paramtypes",[s.DomSanitizer,i.ChangeDetectorRef,i.ElementRef,a.FormBuilder,n.MatDialog])],M),e("EditorComponent",M)}}});
@@ -252,7 +252,7 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
252
252
  getQueryUrl(query, id) {
253
253
  query = (!lodash_1.default.isString(query) || lodash_1.default.isEmpty(query)) ? '' : `"${query}"`;
254
254
  id = lodash_1.default.isEmpty(id) ? '' : `/${id}`;
255
- return `${this.apiBase}${id}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&q=${query}`;
255
+ return `${this.apiBase}${id}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&forceContext=context&q=${query}`;
256
256
  }
257
257
  getQuery(query) {
258
258
  this.lastContentQuery = query;
@@ -1 +1 @@
1
- {"version":3,"sources":["link-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmEM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,aAAa,CAAA;YAC1B,gBAAgB,GAAG,QAAQ,CAAA;YAG3B,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAUzH,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,0CAAmB;gBAyD7C;gBACyB;gBACxB;gBACA;gBACA;gBACA;gBACA;gBACE;gBA7Dd,KAAK,GAAG,UAAU,GAAG,YAAY,CAAA;gBAGjC,CAAC,GAAG,gBAAC,CAAA;gBACL,OAAO,GAAG,iBAAO,CAAA;gBAIjB,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AC,CAAA;gBAC5E,CAAC;aACJ,CAAA;YA7cY,mBAAmB;gBAL/B,gBAAS,CAAC;oBACP,QAAQ,EAAE,eAAe,UAAU,EAAE;oBACrC,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBA2DO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBACN,gCAAc;oBACb,uBAAW;oBACP,sBAAe;oBAClB,+BAAY;oBAChB,wBAAiB;eAhE3B,mBAAmB,CA6c/B;;QAmBD,CAAC","file":"link-dialog.component.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,e){"use strict";var n,i,s,o,r,a,l,c,u,d,h,g,p,f,m,y,b,k,v,C=this&&this.__decorate||function(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r},$=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},T=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){s=t},function(t){o=t},function(t){r=t},function(t){a=t},function(t){l=t},function(t){c=t},function(t){u=t},function(t){d=t},function(t){h=t},function(t){g=t},function(t){p=t},function(t){f=t}],execute:function(){"@stratusjs/angular",m="link-dialog",y="editor",b=u.cookie("env")?"":".min",k=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=class extends g.ResponsiveComponent{dialogRef;data;fb;backend;snackBar;iconRegistry;sanitizer;ref;title=m+"_component";_=l.default;Stratus=c.Stratus;apiBase="/Api/Content";contentEntities=[];contentEntity;dialogContentForm;isContentLoading=!0;isSingleContentLoading=!1;lastContentQuery;meta;pageEvent;limit=20;model;property;editor;eventManager;element;eventInsert=!0;isListView=!1;selected=[];content;linkType="";linkText="";linkInitText="";linkURL="";linkTarget=!1;svgIcons={};isInitialized=!1;isDestroyed=!1;isStyled=!1;constructor(t,e,n,i,s,o,r,a){super(),this.dialogRef=t,this.data=e,this.fb=n,this.backend=i,this.snackBar=s,this.iconRegistry=o,this.sanitizer=r,this.ref=a}ngOnInit(){this.uid=l.default.uniqueId(`sa_${l.default.snakeCase(m)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${k}${y}/${m}.component${b}.css`).then(()=>{this.isStyled=!0,this.refresh()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.isStyled=!0,this.refresh()}),l.default.forEach({selector_delete:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,selector_edit:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`},(t,e)=>this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t)).getNamedSvgIcon(e)),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.element=this.data.element,l.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogContentForm=this.fb.group({contentSelectorInput:"",linkTypeRadio:"",linkTextInput:"",linkURLInput:"",linkTargetCheckbox:""}),this.dialogContentForm.get("contentSelectorInput").valueChanges.pipe(a.debounceTime(300),a.tap(()=>this.isContentLoading=!0),a.switchMap(t=>l.default.isUndefined(t)?this.getQuery():l.default.isString(t)?this.getQuery(t):(this.content=t,this.getQuery()))).subscribe(t=>this.processContent(t)),this.backend.get(this.getQueryUrl()).pipe(a.finalize(()=>this.isContentLoading=!1)).subscribe(t=>this.processContent(t)),this.dialogContentForm.get("linkTypeRadio").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkType=t),this.linkType=this.element&&this.element.hasAttribute("data-content-id")?"content":"url",this.dialogContentForm.get("linkTypeRadio").patchValue(this.linkType),this.dialogContentForm.get("linkTextInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkText=t),this.linkInitText=this.linkText=this.element?this.element.textContent:"",this.dialogContentForm.get("linkTextInput").patchValue(this.linkText),this.dialogContentForm.get("linkURLInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkURL=t),this.linkURL=this.element&&this.element.hasAttribute("href")?this.element.getAttribute("href"):"",this.dialogContentForm.get("linkURLInput").patchValue(this.linkURL),this.dialogContentForm.get("linkTargetCheckbox").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkTarget=t),this.linkTarget=!!this.element&&this.element.hasAttribute("target"),this.dialogContentForm.get("linkTargetCheckbox").patchValue(this.linkTarget),this.element&&this.element.hasAttribute("data-content-id")&&(this.isSingleContentLoading=!0,this.backend.get(this.getQueryUrl(null,this.element.getAttribute("data-content-id"))).pipe(a.finalize(()=>this.isSingleContentLoading=!1)).subscribe(t=>{if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return null;const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||Array.isArray(e)||!l.default.isObject(e)?null:(this.contentEntity=e,this.isSingleContentLoading=!1,this.dialogContentForm.get("contentSelectorInput").patchValue(this.contentEntity),this.refresh(),this.contentEntity)})),this.isInitialized=!0}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(t=>t()):super.refresh()}onCancelClick(){this.eventManager?(this.eventManager.trigger("restore",null,this.editor),this.dialogRef.close(),this.refresh()):console.warn(`${m}: event manager is not set.`)}onPage(t){this.pageEvent=t,this.getQuery(this.lastContentQuery).subscribe(t=>this.processContent(t))}getQueryUrl(t,e){return t=!l.default.isString(t)||l.default.isEmpty(t)?"":`"${t}"`,e=l.default.isEmpty(e)?"":`/${e}`,`${this.apiBase}${e}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&q=${t}`}getQuery(t){return this.lastContentQuery=t,this.isContentLoading=!0,this.backend.get(this.getQueryUrl(t)).pipe(a.finalize(()=>this.isContentLoading=!1))}processContent(t){if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return this.meta={},this.contentEntities=[],this.refresh(),this.contentEntities;this.meta=l.default.get(t.body,"meta")||{};const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||!Array.isArray(e)?(this.contentEntities=[],this.isContentLoading=!1,this.refresh(),this.contentEntities):(this.contentEntities=e,this.isContentLoading=!1,this.refresh(),this.contentEntities)}onAcceptClick(){const t="content"===this.linkType?this.createLink(this.content):{url:this.linkURL,text:this.linkText,target:this.linkTarget};if(!t){const t=this.content&&this.content.id?`for Content ID: ${this.content.id}.`:"without Content Selected or URL Input.";return console.warn(`${m}: unable to build link ${t}`),void this.snackBar.open(`Unable to build link ${t}`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"})}if(this.content&&this.content.id&&this.selected.push(this.content.id),!this.eventInsert)return this.model instanceof h.Model&&l.default.isString(this.property)?(console.warn(`${m}: disabling eventInsert is not recommended.`),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn(`${m}: event manager not available.`);this.eventManager?(this.eventManager.trigger("insert",t,this.editor),this.onCancelClick()):console.warn(`${m}: event manager is not set.`)}isSelected(t){if(!l.default.isUndefined(t))return l.default.includes(this.selected,t.id)}createLink(t){return t?t.id?t.contentType&&t.contentType.name?t.routing&&t.routing.length&&t.routing[0]?t.routing[0].url?t.version?t.version.title&&t.version.title.length?{url:`/${t.routing[0].url}`,title:t.version.title,text:this.linkText,target:this.linkTarget,id:t.id}:(console.warn(`${m}: unable to find title for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content version for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find url for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find routing for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content type for content id: ${t.id}`),null):(console.warn(`${m}: unable to find content id for content:`,t),null):(console.warn(`${m}: unable to create link for empty content`),null)}getSvg(t,e){const n=this.addSvgIcon(t,e);return new r.Observable(e=>{this.iconRegistry.getNamedSvgIcon(n).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(n)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const n=this.svgIcons[t]=l.default.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(n,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),n}displayContentText(t){if(!t)return;const e=l.default.get(t,"routing[0].url"),n=l.default.isUndefined(e)?" (No route!)":` (/${e})`,i=l.default.get(t,"id"),s=l.default.isUndefined(i)?null:`Content: ${i}`;return(l.default.get(t,"version.title")||s)+n}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}},v=C([n.Component({selector:`sa-internal-${m}`,templateUrl:`${k}/${y}/${m}.component${b}.html`}),T(1,n.Inject(s.MAT_DIALOG_DATA)),$("design:paramtypes",[s.MatDialogRef,Object,i.FormBuilder,d.BackendService,o.MatSnackBar,p.MatIconRegistry,f.DomSanitizer,n.ChangeDetectorRef])],v),t("LinkDialogComponent",v)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,e){"use strict";var n,i,s,o,r,a,l,c,u,d,h,g,p,f,m,y,b,k,v,C=this&&this.__decorate||function(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r},$=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},T=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){s=t},function(t){o=t},function(t){r=t},function(t){a=t},function(t){l=t},function(t){c=t},function(t){u=t},function(t){d=t},function(t){h=t},function(t){g=t},function(t){p=t},function(t){f=t}],execute:function(){m="link-dialog",y="editor",b=u.cookie("env")?"":".min",k=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=class extends g.ResponsiveComponent{dialogRef;data;fb;backend;snackBar;iconRegistry;sanitizer;ref;title=m+"_component";_=l.default;Stratus=c.Stratus;apiBase="/Api/Content";contentEntities=[];contentEntity;dialogContentForm;isContentLoading=!0;isSingleContentLoading=!1;lastContentQuery;meta;pageEvent;limit=20;model;property;editor;eventManager;element;eventInsert=!0;isListView=!1;selected=[];content;linkType="";linkText="";linkInitText="";linkURL="";linkTarget=!1;svgIcons={};isInitialized=!1;isDestroyed=!1;isStyled=!1;constructor(t,e,n,i,s,o,r,a){super(),this.dialogRef=t,this.data=e,this.fb=n,this.backend=i,this.snackBar=s,this.iconRegistry=o,this.sanitizer=r,this.ref=a}ngOnInit(){this.uid=l.default.uniqueId(`sa_${l.default.snakeCase(m)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${k}${y}/${m}.component${b}.css`).then(()=>{this.isStyled=!0,this.refresh()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.isStyled=!0,this.refresh()}),l.default.forEach({selector_delete:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,selector_edit:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`},(t,e)=>this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t)).getNamedSvgIcon(e)),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.element=this.data.element,l.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogContentForm=this.fb.group({contentSelectorInput:"",linkTypeRadio:"",linkTextInput:"",linkURLInput:"",linkTargetCheckbox:""}),this.dialogContentForm.get("contentSelectorInput").valueChanges.pipe(a.debounceTime(300),a.tap(()=>this.isContentLoading=!0),a.switchMap(t=>l.default.isUndefined(t)?this.getQuery():l.default.isString(t)?this.getQuery(t):(this.content=t,this.getQuery()))).subscribe(t=>this.processContent(t)),this.backend.get(this.getQueryUrl()).pipe(a.finalize(()=>this.isContentLoading=!1)).subscribe(t=>this.processContent(t)),this.dialogContentForm.get("linkTypeRadio").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkType=t),this.linkType=this.element&&this.element.hasAttribute("data-content-id")?"content":"url",this.dialogContentForm.get("linkTypeRadio").patchValue(this.linkType),this.dialogContentForm.get("linkTextInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkText=t),this.linkInitText=this.linkText=this.element?this.element.textContent:"",this.dialogContentForm.get("linkTextInput").patchValue(this.linkText),this.dialogContentForm.get("linkURLInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkURL=t),this.linkURL=this.element&&this.element.hasAttribute("href")?this.element.getAttribute("href"):"",this.dialogContentForm.get("linkURLInput").patchValue(this.linkURL),this.dialogContentForm.get("linkTargetCheckbox").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkTarget=t),this.linkTarget=!!this.element&&this.element.hasAttribute("target"),this.dialogContentForm.get("linkTargetCheckbox").patchValue(this.linkTarget),this.element&&this.element.hasAttribute("data-content-id")&&(this.isSingleContentLoading=!0,this.backend.get(this.getQueryUrl(null,this.element.getAttribute("data-content-id"))).pipe(a.finalize(()=>this.isSingleContentLoading=!1)).subscribe(t=>{if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return null;const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||Array.isArray(e)||!l.default.isObject(e)?null:(this.contentEntity=e,this.isSingleContentLoading=!1,this.dialogContentForm.get("contentSelectorInput").patchValue(this.contentEntity),this.refresh(),this.contentEntity)})),this.isInitialized=!0}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(t=>t()):super.refresh()}onCancelClick(){this.eventManager?(this.eventManager.trigger("restore",null,this.editor),this.dialogRef.close(),this.refresh()):console.warn(`${m}: event manager is not set.`)}onPage(t){this.pageEvent=t,this.getQuery(this.lastContentQuery).subscribe(t=>this.processContent(t))}getQueryUrl(t,e){return t=!l.default.isString(t)||l.default.isEmpty(t)?"":`"${t}"`,e=l.default.isEmpty(e)?"":`/${e}`,`${this.apiBase}${e}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&forceContext=context&q=${t}`}getQuery(t){return this.lastContentQuery=t,this.isContentLoading=!0,this.backend.get(this.getQueryUrl(t)).pipe(a.finalize(()=>this.isContentLoading=!1))}processContent(t){if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return this.meta={},this.contentEntities=[],this.refresh(),this.contentEntities;this.meta=l.default.get(t.body,"meta")||{};const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||!Array.isArray(e)?(this.contentEntities=[],this.isContentLoading=!1,this.refresh(),this.contentEntities):(this.contentEntities=e,this.isContentLoading=!1,this.refresh(),this.contentEntities)}onAcceptClick(){const t="content"===this.linkType?this.createLink(this.content):{url:this.linkURL,text:this.linkText,target:this.linkTarget};if(!t){const t=this.content&&this.content.id?`for Content ID: ${this.content.id}.`:"without Content Selected or URL Input.";return console.warn(`${m}: unable to build link ${t}`),void this.snackBar.open(`Unable to build link ${t}`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"})}if(this.content&&this.content.id&&this.selected.push(this.content.id),!this.eventInsert)return this.model instanceof h.Model&&l.default.isString(this.property)?(console.warn(`${m}: disabling eventInsert is not recommended.`),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn(`${m}: event manager not available.`);this.eventManager?(this.eventManager.trigger("insert",t,this.editor),this.onCancelClick()):console.warn(`${m}: event manager is not set.`)}isSelected(t){if(!l.default.isUndefined(t))return l.default.includes(this.selected,t.id)}createLink(t){return t?t.id?t.contentType&&t.contentType.name?t.routing&&t.routing.length&&t.routing[0]?t.routing[0].url?t.version?t.version.title&&t.version.title.length?{url:`/${t.routing[0].url}`,title:t.version.title,text:this.linkText,target:this.linkTarget,id:t.id}:(console.warn(`${m}: unable to find title for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content version for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find url for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find routing for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content type for content id: ${t.id}`),null):(console.warn(`${m}: unable to find content id for content:`,t),null):(console.warn(`${m}: unable to create link for empty content`),null)}getSvg(t,e){const n=this.addSvgIcon(t,e);return new r.Observable(e=>{this.iconRegistry.getNamedSvgIcon(n).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(n)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const n=this.svgIcons[t]=l.default.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(n,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),n}displayContentText(t){if(!t)return;const e=l.default.get(t,"routing[0].url"),n=l.default.isUndefined(e)?" (No route!)":` (/${e})`,i=l.default.get(t,"id"),s=l.default.isUndefined(i)?null:`Content: ${i}`;return(l.default.get(t,"version.title")||s)+n}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}},v=C([n.Component({selector:`sa-internal-${m}`,templateUrl:`${k}/${y}/${m}.component${b}.html`}),T(1,n.Inject(s.MAT_DIALOG_DATA)),$("design:paramtypes",[s.MatDialogRef,Object,i.FormBuilder,d.BackendService,o.MatSnackBar,p.MatIconRegistry,f.DomSanitizer,n.ChangeDetectorRef])],v),t("LinkDialogComponent",v)}}});
@@ -357,7 +357,7 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit,
357
357
  getQueryUrl(query?: string, id?: string|number): string {
358
358
  query = (!_.isString(query) || _.isEmpty(query)) ? '' : `"${query}"`
359
359
  id = _.isEmpty(id) ? '' : `/${id}`
360
- return `${this.apiBase}${id}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&q=${query}`
360
+ return `${this.apiBase}${id}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&forceContext=context&q=${query}`
361
361
  }
362
362
 
363
363
  getQuery(query?: string): Observable<HttpResponse<any>> {
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component"],function(e,t){"use strict";var i,a,r,s,d,n,o,l,c,m,u,h,f,p,g,b,v=this&&this.__decorate||function(e,t,i,a){var r,s=arguments.length,d=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,a);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(d=(s<3?r(d):s>3?r(t,i,d):r(t,i))||d);return s>3&&d&&Object.defineProperty(t,i,d),d},y=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=this&&this.__param||function(e,t){return function(i,a){t(i,a,e)}};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){r=e},function(e){s=e},function(e){d=e},function(e){n=e},function(e){o=e},function(e){l=e},function(e){c=e},function(e){m=e},function(e){u=e}],execute:function(){"@stratusjs/angular",h="media-dialog",f="editor",p=l.cookie("env")?"":".min",g=`${o.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,b=class extends u.ResponsiveComponent{dialogRef;data;fb;backend;snackBar;ref;title=h+"_component";_=n.default;Stratus=o.Stratus;apiBase="/Api/Media";apiParams="forceContext=context";mediaEntities=[];dialogMediaForm;isMediaLoading=!0;lastMediaQuery;meta;pageEvent;limit=20;model;property;editor;eventManager;eventInsert=!0;selected=[];embedly=!0;constructor(e,t,i,a,r,s){super(),this.dialogRef=e,this.data=t,this.fb=i,this.backend=a,this.snackBar=r,this.ref=s}ngOnInit(){this.uid=n.default.uniqueId(`sa_${n.default.snakeCase(h)}_component_`),o.Stratus.Instances[this.uid]=this,o.Stratus.Internals.CssLoader(`${g}/${f}/${h}.component${p}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,n.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogMediaForm=this.fb.group({mediaQueryInput:""}),this.dialogMediaForm.get("mediaQueryInput").valueChanges.pipe(d.debounceTime(300),d.tap(()=>{}),d.switchMap(e=>this.getQuery(e))).subscribe(e=>this.processMedia(e)),this.getQuery().subscribe(e=>this.processMedia(e)),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}onPage(e){this.pageEvent=e,this.getQuery(this.lastMediaQuery).subscribe(e=>this.processMedia(e))}getQueryUrl(e){let t=this.limit,i=1;return this.pageEvent&&(t=this.pageEvent.pageSize,i=this.pageEvent.pageIndex+1),e=n.default.isString(e)&&!n.default.isEmpty(e)?`"${e}"`:"",`${this.apiBase}?limit=${t}&p=${i}&q=${e}&${this.apiParams}`}getQuery(e){return this.lastMediaQuery=e,this.isMediaLoading=!0,this.backend.get(this.getQueryUrl(e)).pipe(d.finalize(()=>this.isMediaLoading=!1))}processMedia(e){if(!e.ok||200!==e.status||n.default.isEmpty(e.body))return this.meta={},this.mediaEntities=[],this.refresh(),this.mediaEntities;this.meta=n.default.get(e.body,"meta")||{};const t=n.default.get(e.body,"payload")||e.body;return n.default.isEmpty(t)||!Array.isArray(t)?(this.mediaEntities=[],this.isMediaLoading=!1,this.refresh(),this.mediaEntities):(this.mediaEntities=t,this.isMediaLoading=!1,this.refresh(),this.mediaEntities)}select(e){if(n.default.isUndefined(e))return;const t=this.createEmbed(e);return t?(this.selected.push(e.id),this.eventInsert?void(this.eventManager?this.eventManager.trigger("insert",t,this.editor):console.warn("media-dialog: event manager is not set.")):this.model instanceof m.Model&&n.default.isString(this.property)?(console.warn("media-dialog: disabling eventInsert is not recommended."),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn("media-dialog: event manager not available.")):(console.warn(`media-dialog: unable to build embed for Media ID: ${e.id}`),void this.snackBar.open(`Unable to build embed for Media ID: ${e.id}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"}))}isSelected(e){if(!n.default.isUndefined(e))return n.default.includes(this.selected,e.id)}createEmbed(e){if(e._embedCode)return{html:e._embedCode};if(n.default.startsWith(e.mime,"image"))return!e._thumbnailUrl||"directLink"===e.service&&!e.file?(console.warn(`media-dialog: unable to determine image source for media id: ${e.id}`),null):{html:`<img src="${e._thumbnailUrl||e.file}" alt="${e.name||e.filename}" ${"image/gif"!==e.mime?"data-stratus-src":""}>`};if("video"===e.mime){if(e.embed)return{html:e.embed};const t='width="100%" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true" webkitAllowFullScreen="" mozAllowFullScreen=""';if("facebook"===e.service){const i=e.url||e.file;return i?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='${i}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 998px;">\n <a href="${i}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.facebook.com/plugins/video.php?href=${i}" ${t}></iframe>`}:(console.warn(`media-dialog: unable to find url for video with media id: ${e.id}`),null)}return e.serviceMediaId?"vimeo"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://vimeo.com/${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://vimeo.com/${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://player.vimeo.com/video/${e.serviceMediaId}" ${t}></iframe>`}:"youtube"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://www.youtube.com/watch?v=${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://www.youtube.com/watch?v=${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.youtube.com/embed/${e.serviceMediaId}" ${t}></iframe>`}:(console.warn(`media-dialog: unsupported service: ${e.service} for media id: ${e.id}`),null):(console.warn(`media-dialog: unable to find serviceMediaId for video with media id: ${e.id}`),null)}return n.default.startsWith(e.mime,"audio")?e.url?{html:`<audio controls>\n <source src="https://${e.url}" type="${e.mime}">\n <p>\n Your browser doesn't support HTML5 audio, but you can <a href="https://${e.url}">download the audio here</a>.\n </p>\n </audio>`}:(console.warn(`media-dialog: unable to determine audio source for media id: ${e.id}`),null):"application/pdf"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine PDF source for media id: ${e.id}`),null):"application/msword"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine Word Document source for media id: ${e.id}`),null):(console.warn(`media-dialog: unsupported mime type: ${e.mime} for media id: ${e.id}`),null)}},b=v([i.Component({selector:`sa-internal-${h}`,templateUrl:`${g}/${f}/${h}.component${p}.html`}),$(1,i.Inject(r.MAT_DIALOG_DATA)),y("design:paramtypes",[r.MatDialogRef,Object,a.FormBuilder,c.BackendService,s.MatSnackBar,i.ChangeDetectorRef])],b),e("MediaDialogComponent",b)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component"],function(e,t){"use strict";var i,a,r,s,d,n,o,l,c,m,u,h,f,p,g,b,v=this&&this.__decorate||function(e,t,i,a){var r,s=arguments.length,d=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,a);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(d=(s<3?r(d):s>3?r(t,i,d):r(t,i))||d);return s>3&&d&&Object.defineProperty(t,i,d),d},y=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=this&&this.__param||function(e,t){return function(i,a){t(i,a,e)}};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){r=e},function(e){s=e},function(e){d=e},function(e){n=e},function(e){o=e},function(e){l=e},function(e){c=e},function(e){m=e},function(e){u=e}],execute:function(){h="media-dialog",f="editor",p=l.cookie("env")?"":".min",g=`${o.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,b=class extends u.ResponsiveComponent{dialogRef;data;fb;backend;snackBar;ref;title=h+"_component";_=n.default;Stratus=o.Stratus;apiBase="/Api/Media";apiParams="forceContext=context";mediaEntities=[];dialogMediaForm;isMediaLoading=!0;lastMediaQuery;meta;pageEvent;limit=20;model;property;editor;eventManager;eventInsert=!0;selected=[];embedly=!0;constructor(e,t,i,a,r,s){super(),this.dialogRef=e,this.data=t,this.fb=i,this.backend=a,this.snackBar=r,this.ref=s}ngOnInit(){this.uid=n.default.uniqueId(`sa_${n.default.snakeCase(h)}_component_`),o.Stratus.Instances[this.uid]=this,o.Stratus.Internals.CssLoader(`${g}/${f}/${h}.component${p}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,n.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogMediaForm=this.fb.group({mediaQueryInput:""}),this.dialogMediaForm.get("mediaQueryInput").valueChanges.pipe(d.debounceTime(300),d.tap(()=>{}),d.switchMap(e=>this.getQuery(e))).subscribe(e=>this.processMedia(e)),this.getQuery().subscribe(e=>this.processMedia(e)),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}onPage(e){this.pageEvent=e,this.getQuery(this.lastMediaQuery).subscribe(e=>this.processMedia(e))}getQueryUrl(e){let t=this.limit,i=1;return this.pageEvent&&(t=this.pageEvent.pageSize,i=this.pageEvent.pageIndex+1),e=n.default.isString(e)&&!n.default.isEmpty(e)?`"${e}"`:"",`${this.apiBase}?limit=${t}&p=${i}&q=${e}&${this.apiParams}`}getQuery(e){return this.lastMediaQuery=e,this.isMediaLoading=!0,this.backend.get(this.getQueryUrl(e)).pipe(d.finalize(()=>this.isMediaLoading=!1))}processMedia(e){if(!e.ok||200!==e.status||n.default.isEmpty(e.body))return this.meta={},this.mediaEntities=[],this.refresh(),this.mediaEntities;this.meta=n.default.get(e.body,"meta")||{};const t=n.default.get(e.body,"payload")||e.body;return n.default.isEmpty(t)||!Array.isArray(t)?(this.mediaEntities=[],this.isMediaLoading=!1,this.refresh(),this.mediaEntities):(this.mediaEntities=t,this.isMediaLoading=!1,this.refresh(),this.mediaEntities)}select(e){if(n.default.isUndefined(e))return;const t=this.createEmbed(e);return t?(this.selected.push(e.id),this.eventInsert?void(this.eventManager?this.eventManager.trigger("insert",t,this.editor):console.warn("media-dialog: event manager is not set.")):this.model instanceof m.Model&&n.default.isString(this.property)?(console.warn("media-dialog: disabling eventInsert is not recommended."),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn("media-dialog: event manager not available.")):(console.warn(`media-dialog: unable to build embed for Media ID: ${e.id}`),void this.snackBar.open(`Unable to build embed for Media ID: ${e.id}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"}))}isSelected(e){if(!n.default.isUndefined(e))return n.default.includes(this.selected,e.id)}createEmbed(e){if(e._embedCode)return{html:e._embedCode};if(n.default.startsWith(e.mime,"image"))return!e._thumbnailUrl||"directLink"===e.service&&!e.file?(console.warn(`media-dialog: unable to determine image source for media id: ${e.id}`),null):{html:`<img src="${e._thumbnailUrl||e.file}" alt="${e.name||e.filename}" ${"image/gif"!==e.mime?"data-stratus-src":""}>`};if("video"===e.mime){if(e.embed)return{html:e.embed};const t='width="100%" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true" webkitAllowFullScreen="" mozAllowFullScreen=""';if("facebook"===e.service){const i=e.url||e.file;return i?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='${i}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 998px;">\n <a href="${i}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.facebook.com/plugins/video.php?href=${i}" ${t}></iframe>`}:(console.warn(`media-dialog: unable to find url for video with media id: ${e.id}`),null)}return e.serviceMediaId?"vimeo"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://vimeo.com/${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://vimeo.com/${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://player.vimeo.com/video/${e.serviceMediaId}" ${t}></iframe>`}:"youtube"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://www.youtube.com/watch?v=${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://www.youtube.com/watch?v=${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.youtube.com/embed/${e.serviceMediaId}" ${t}></iframe>`}:(console.warn(`media-dialog: unsupported service: ${e.service} for media id: ${e.id}`),null):(console.warn(`media-dialog: unable to find serviceMediaId for video with media id: ${e.id}`),null)}return n.default.startsWith(e.mime,"audio")?e.url?{html:`<audio controls>\n <source src="https://${e.url}" type="${e.mime}">\n <p>\n Your browser doesn't support HTML5 audio, but you can <a href="https://${e.url}">download the audio here</a>.\n </p>\n </audio>`}:(console.warn(`media-dialog: unable to determine audio source for media id: ${e.id}`),null):"application/pdf"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine PDF source for media id: ${e.id}`),null):"application/msword"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine Word Document source for media id: ${e.id}`),null):(console.warn(`media-dialog: unsupported mime type: ${e.mime} for media id: ${e.id}`),null)}},b=v([i.Component({selector:`sa-internal-${h}`,templateUrl:`${g}/${f}/${h}.component${p}.html`}),$(1,i.Inject(r.MAT_DIALOG_DATA)),y("design:paramtypes",[r.MatDialogRef,Object,a.FormBuilder,c.BackendService,s.MatSnackBar,i.ChangeDetectorRef])],b),e("MediaDialogComponent",b)}}});
@@ -1 +1 @@
1
- System.register(["@stratusjs/core/environment","@stratusjs/runtime/stratus","lodash","./inputButton","froala-editor"],function(t,n){"use strict";var a,e,i,o,c,r,l;n&&n.id;return{setters:[function(t){a=t},function(t){e=t},function(t){i=t},function(t){o=t},function(t){c=t}],execute:function(){"@stratusjs/angular","citationManager","froala/plugins",r=a.cookie("env")?"":".min",l=`${e.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,i.extend(c.default.POPUP_TEMPLATES,{"citationManager.toolbar":"[_BUTTONS_]"}),i.extend(c.default.DEFAULTS,{citationToolbarButtons:["citationEdit","citationDelete"]}),c.default.PLUGINS.citationManager=function(t){let n;function a(){let n=t.selection.endElement();return"STRATUS-CITATION"===n.tagName?n:(n=t.selection.element(),"STRATUS-CITATION"===n.tagName?n:(n=n.parentElement,"STRATUS-CITATION"===n.tagName?n:null))}return{_init:function(){e.Stratus.Internals.CssLoader(`${l}froala/plugins/citationManager${r}.css`),n=new o.InputButtonPlugin({name:"Citation Manager",eventName:"citation-input",editor:t,autoSaveSelection:!0,autoRestoreSelection:!0,debug:false}),t.events.on("click",n=>{if(n.hasOwnProperty("target")&&("STRATUS-CITATION"===n.target.nodeName||"STRATUS-CITATION-TITLE"===n.target.nodeName)){const e=a();e&&t.citationManager.showToolbar(n,e)}})},onClick:function(){t.el?n.onClick(t.el):console.warn("citationManager.onClick(): unable to find element")},showToolbar:function(n,a){t.popups.get("citationManager.toolbar")||function(){let n="";t.opts.citationToolbarButtons.length>1&&(n+='<div class="fr-buttons">',n+=t.button.buildList(t.opts.citationToolbarButtons),n+="</div>");const a={buttons:n};t.popups.create("citationManager.toolbar",a)}(),t.popups.setContainer("citationManager.toolbar",t.$tb);const e=t.$tb.find('.fr-command[data-cmd="myButton"]'),i=n.pageX,o=n.pageY;t.popups.show("citationManager.toolbar",i,o,e.outerHeight()),t.citationManager.setLastKnownCitation(a)},hideToolbar:function(){t.citationManager.setLastKnownCitation(null),t.popups.hide("citationManager.toolbar")},getSelectedCitation:a,getLastKnownCitation:function(){return t.citationManager.lastCitation||null},setLastKnownCitation:function(n){t.citationManager.lastCitation=n}}},c.default.DefineIcon("citationDelete",{NAME:"citationDelete",SVG_KEY:"remove"}),c.default.RegisterCommand("citationDelete",{title:"Delete Citation",undo:!1,focus:!1,callback(){const t=this.citationManager.getSelectedCitation();t&&t.remove(),this.citationManager.hideToolbar()}}),c.default.DefineIcon("citationManager",{NAME:"citationManager",SVG_KEY:"imageCaption"}),c.default.RegisterCommand("citationInsert",{icon:"citationManager",title:"Insert Citation",undo:!1,focus:!1,modal:!0,callback(t,n,a){this.citationManager.onClick()},plugin:"citationManager"}),c.default.RegisterCommand("citationEdit",{icon:"citationManager",title:"Edit Citation",undo:!1,focus:!1,modal:!0,callback(t,n,a){this.citationManager.onClick()},plugin:"citationManager"}),c.default.RegisterQuickInsertButton("citation",{icon:"citationManager",title:"Insert Citation",callback:function(){const t=new o.InputButtonPlugin({name:"Citation Manager",eventName:"citation-input",editor:this,autoSaveSelection:!0,autoRestoreSelection:!0,debug:!1});this.el?t.onClick(this.el):console.warn("citationManager.onClick(): unable to find element")},undo:!0})}}});
1
+ System.register(["@stratusjs/core/environment","@stratusjs/runtime/stratus","lodash","./inputButton","froala-editor"],function(t,n){"use strict";var a,e,i,o,c,r,l;n&&n.id;return{setters:[function(t){a=t},function(t){e=t},function(t){i=t},function(t){o=t},function(t){c=t}],execute:function(){r=a.cookie("env")?"":".min",l=`${e.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,i.extend(c.default.POPUP_TEMPLATES,{"citationManager.toolbar":"[_BUTTONS_]"}),i.extend(c.default.DEFAULTS,{citationToolbarButtons:["citationEdit","citationDelete"]}),c.default.PLUGINS.citationManager=function(t){let n;const a=!1;function i(){let n=t.selection.endElement();return"STRATUS-CITATION"===n.tagName?n:(n=t.selection.element(),"STRATUS-CITATION"===n.tagName?n:(n=n.parentElement,"STRATUS-CITATION"===n.tagName?n:null))}return{_init:function(){e.Stratus.Internals.CssLoader(`${l}froala/plugins/citationManager${r}.css`),n=new o.InputButtonPlugin({name:"Citation Manager",eventName:"citation-input",editor:t,autoSaveSelection:!0,autoRestoreSelection:!0,debug:a}),t.events.on("click",n=>{if(n.hasOwnProperty("target")&&("STRATUS-CITATION"===n.target.nodeName||"STRATUS-CITATION-TITLE"===n.target.nodeName)){const a=i();a&&t.citationManager.showToolbar(n,a)}})},onClick:function(){t.el?n.onClick(t.el):console.warn("citationManager.onClick(): unable to find element")},showToolbar:function(n,a){t.popups.get("citationManager.toolbar")||function(){let n="";t.opts.citationToolbarButtons.length>1&&(n+='<div class="fr-buttons">',n+=t.button.buildList(t.opts.citationToolbarButtons),n+="</div>");const a={buttons:n};t.popups.create("citationManager.toolbar",a)}(),t.popups.setContainer("citationManager.toolbar",t.$tb);const e=t.$tb.find('.fr-command[data-cmd="myButton"]'),i=n.pageX,o=n.pageY;t.popups.show("citationManager.toolbar",i,o,e.outerHeight()),t.citationManager.setLastKnownCitation(a)},hideToolbar:function(){t.citationManager.setLastKnownCitation(null),t.popups.hide("citationManager.toolbar")},getSelectedCitation:i,getLastKnownCitation:function(){return t.citationManager.lastCitation||null},setLastKnownCitation:function(n){t.citationManager.lastCitation=n}}},c.default.DefineIcon("citationDelete",{NAME:"citationDelete",SVG_KEY:"remove"}),c.default.RegisterCommand("citationDelete",{title:"Delete Citation",undo:!1,focus:!1,callback(){const t=this.citationManager.getSelectedCitation();t&&t.remove(),this.citationManager.hideToolbar()}}),c.default.DefineIcon("citationManager",{NAME:"citationManager",SVG_KEY:"imageCaption"}),c.default.RegisterCommand("citationInsert",{icon:"citationManager",title:"Insert Citation",undo:!1,focus:!1,modal:!0,callback(t,n,a){this.citationManager.onClick()},plugin:"citationManager"}),c.default.RegisterCommand("citationEdit",{icon:"citationManager",title:"Edit Citation",undo:!1,focus:!1,modal:!0,callback(t,n,a){this.citationManager.onClick()},plugin:"citationManager"}),c.default.RegisterQuickInsertButton("citation",{icon:"citationManager",title:"Insert Citation",callback:function(){const t=new o.InputButtonPlugin({name:"Citation Manager",eventName:"citation-input",editor:this,autoSaveSelection:!0,autoRestoreSelection:!0,debug:!1});this.el?t.onClick(this.el):console.warn("citationManager.onClick(): unable to find element")},undo:!0})}}});
@@ -1 +1 @@
1
- System.register(["./inputButton","froala-editor"],function(e,n){"use strict";var a,t;n&&n.id;return{setters:[function(e){a=e},function(e){t=e}],execute:function(){t.default.DEFAULTS=Object.assign(t.default.DEFAULTS,{endpoint:"/Api/Media"}),t.default.PLUGINS.mediaManager=function(e){let n;return{_init:function(){n=new a.InputButtonPlugin({name:"Media Manager",eventName:"media-library",editor:e,insert:n=>{e.html.insert(n.html)},autoSaveSelection:!0,autoRestoreSelection:!0,debug:false})},onClick:function(){e.el?n.onClick(e.el):console.warn("mediaManager.onClick(): unable to find element")}}},t.default.DEFAULTS.imageInsertButtons.push("mediaManager"),t.default.RegisterCommand("mediaManager",{title:"Insert from Media Library",undo:!1,focus:!1,modal:!0,callback(){this.mediaManager.onClick()},plugin:"mediaManager"}),t.default.DefineIcon("mediaManager",{NAME:"folder",SVG_KEY:"imageManager"}),t.default.DefineIcon("mediaManagerInsert",{NAME:"plus",SVG_KEY:"add"}),t.default.DefineIcon("mediaManagerDelete",{NAME:"trash",SVG_KEY:"remove"}),t.default.RegisterQuickInsertButton("media",{icon:"mediaManager",title:"Insert from Media Library",callback:function(){const e=new a.InputButtonPlugin({name:"Media Manager",eventName:"media-library",editor:this,insert:e=>{this.html.insert(e.html)},autoSaveSelection:!0,autoRestoreSelection:!0,debug:!1});this.el?e.onClick(this.el):console.warn("mediaManager.onClick(): unable to find element")},undo:!0})}}});
1
+ System.register(["./inputButton","froala-editor"],function(e,n){"use strict";var t,a;n&&n.id;return{setters:[function(e){t=e},function(e){a=e}],execute:function(){a.default.DEFAULTS=Object.assign(a.default.DEFAULTS,{endpoint:"/Api/Media"}),a.default.PLUGINS.mediaManager=function(e){let n;const a=!1;return{_init:function(){n=new t.InputButtonPlugin({name:"Media Manager",eventName:"media-library",editor:e,insert:n=>{e.html.insert(n.html)},autoSaveSelection:!0,autoRestoreSelection:!0,debug:a})},onClick:function(){e.el?n.onClick(e.el):console.warn("mediaManager.onClick(): unable to find element")}}},a.default.DEFAULTS.imageInsertButtons.push("mediaManager"),a.default.RegisterCommand("mediaManager",{title:"Insert from Media Library",undo:!1,focus:!1,modal:!0,callback(){this.mediaManager.onClick()},plugin:"mediaManager"}),a.default.DefineIcon("mediaManager",{NAME:"folder",SVG_KEY:"imageManager"}),a.default.DefineIcon("mediaManagerInsert",{NAME:"plus",SVG_KEY:"add"}),a.default.DefineIcon("mediaManagerDelete",{NAME:"trash",SVG_KEY:"remove"}),a.default.RegisterQuickInsertButton("media",{icon:"mediaManager",title:"Insert from Media Library",callback:function(){const e=new t.InputButtonPlugin({name:"Media Manager",eventName:"media-library",editor:this,insert:e=>{this.html.insert(e.html)},autoSaveSelection:!0,autoRestoreSelection:!0,debug:!1});this.el?e.onClick(this.el):console.warn("mediaManager.onClick(): unable to find element")},undo:!0})}}});
@@ -1 +1 @@
1
- System.register(["./inputButton","froala-editor"],function(t,n){"use strict";var e,u;n&&n.id;return{setters:[function(t){e=t},function(t){u=t}],execute:function(){u.default.DEFAULTS=Object.assign(u.default.DEFAULTS,{}),u.default.PLUGINS.menuButton=function(t){let n;return{_init:function(){n=new e.InputButtonPlugin({name:"Menu Button",eventName:"menu-button",editor:t,debug:false})},onClick:function(){t.el?n.onClick(t.el):console.warn("menuButton.onClick(): unable to find element")}}},u.default.DEFAULTS&&(void 0===u.default.DEFAULTS.menuButtons&&(u.default.DEFAULTS.menuButtons=[]),u.default.DEFAULTS.menuButtons.push("menuButton")),u.default.RegisterCommand("menuButton",{title:"Insert from Menu Button",undo:!1,focus:!1,modal:!1,refreshAfterCallback:!0,callback(){this.menuButton.onClick()},plugin:"menuButton"}),u.default.DefineIcon("menuButton",{NAME:"folder",SVG_KEY:"imageManager"}),u.default.DefineIcon("menuButtonInsert",{NAME:"plus",SVG_KEY:"add"}),u.default.DefineIcon("menuButtonDelete",{NAME:"trash",SVG_KEY:"remove"}),u.default.RegisterQuickInsertButton("menu",{icon:"menuButton",title:"Insert from Menu Button",callback:function(){const t=new e.InputButtonPlugin({name:"Menu Button",eventName:"menu-button",editor:this,debug:!1});this.el?t.onClick(this.el):console.warn("menuButton.onClick(): unable to find element")},undo:!0})}}});
1
+ System.register(["./inputButton","froala-editor"],function(t,n){"use strict";var e,u;n&&n.id;return{setters:[function(t){e=t},function(t){u=t}],execute:function(){u.default.DEFAULTS=Object.assign(u.default.DEFAULTS,{}),u.default.PLUGINS.menuButton=function(t){let n;const u=!1;return{_init:function(){n=new e.InputButtonPlugin({name:"Menu Button",eventName:"menu-button",editor:t,debug:u})},onClick:function(){t.el?n.onClick(t.el):console.warn("menuButton.onClick(): unable to find element")}}},u.default.DEFAULTS&&(void 0===u.default.DEFAULTS.menuButtons&&(u.default.DEFAULTS.menuButtons=[]),u.default.DEFAULTS.menuButtons.push("menuButton")),u.default.RegisterCommand("menuButton",{title:"Insert from Menu Button",undo:!1,focus:!1,modal:!1,refreshAfterCallback:!0,callback(){this.menuButton.onClick()},plugin:"menuButton"}),u.default.DefineIcon("menuButton",{NAME:"folder",SVG_KEY:"imageManager"}),u.default.DefineIcon("menuButtonInsert",{NAME:"plus",SVG_KEY:"add"}),u.default.DefineIcon("menuButtonDelete",{NAME:"trash",SVG_KEY:"remove"}),u.default.RegisterQuickInsertButton("menu",{icon:"menuButton",title:"Insert from Menu Button",callback:function(){const t=new e.InputButtonPlugin({name:"Menu Button",eventName:"menu-button",editor:this,debug:!1});this.el?t.onClick(this.el):console.warn("menuButton.onClick(): unable to find element")},undo:!0})}}});
@@ -0,0 +1,2 @@
1
+
2
+ /*# sourceMappingURL=json.component.css.map */