@volo/abp.ng.file-management 5.0.0 → 5.1.2

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 (172) hide show
  1. package/common/package.json +5 -5
  2. package/config/package.json +5 -5
  3. package/esm2020/common/enums/index.mjs +2 -0
  4. package/esm2020/common/enums/route-names.mjs +2 -0
  5. package/esm2020/common/public-api.mjs +3 -0
  6. package/esm2020/common/tokens/features.token.mjs +31 -0
  7. package/esm2020/common/tokens/index.mjs +2 -0
  8. package/esm2020/common/volo-abp.ng.file-management-common.mjs +5 -0
  9. package/esm2020/config/enums/index.mjs +3 -0
  10. package/esm2020/config/enums/policy-names.mjs +2 -0
  11. package/esm2020/config/enums/route-names.mjs +2 -0
  12. package/esm2020/config/file-management-config.module.mjs +22 -0
  13. package/esm2020/config/providers/index.mjs +2 -0
  14. package/esm2020/config/providers/route.provider.mjs +26 -0
  15. package/esm2020/config/public-api.mjs +4 -0
  16. package/esm2020/config/volo-abp.ng.file-management-config.mjs +5 -0
  17. package/esm2020/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.mjs +27 -0
  18. package/esm2020/lib/components/file-management-buttons/file-management-buttons.component.mjs +27 -0
  19. package/esm2020/lib/components/file-management-directory-tree/file-management-directory-tree.component.mjs +92 -0
  20. package/esm2020/lib/components/file-management-folder-content/file-management-folder-content.component.mjs +111 -0
  21. package/esm2020/lib/components/file-management-folder-filter/file-management-folder-filter.component.mjs +28 -0
  22. package/esm2020/lib/components/file-management-folder-panel/file-management-folder-panel.component.mjs +24 -0
  23. package/esm2020/lib/components/index.mjs +7 -0
  24. package/esm2020/lib/defaults/default-file-management-entity-actions.mjs +84 -0
  25. package/esm2020/lib/defaults/default-file-management-entity-props.mjs +48 -0
  26. package/esm2020/lib/defaults/default-file-management-toolbar-actions.mjs +3 -0
  27. package/esm2020/lib/defaults/index.mjs +3 -0
  28. package/esm2020/lib/enums/components.mjs +2 -0
  29. package/esm2020/lib/enums/index.mjs +2 -0
  30. package/esm2020/lib/file-management-routing.module.mjs +34 -0
  31. package/esm2020/lib/file-management.component.mjs +58 -0
  32. package/esm2020/lib/file-management.initializer.mjs +37 -0
  33. package/esm2020/lib/file-management.module.mjs +121 -0
  34. package/esm2020/lib/guards/file-management.guard.mjs +23 -0
  35. package/esm2020/lib/index.mjs +13 -0
  36. package/esm2020/lib/modals/base-modal.component.mjs +142 -0
  37. package/esm2020/lib/modals/create-folder-modal/create-folder-modal.component.mjs +38 -0
  38. package/esm2020/lib/modals/create-folder-modal/create-folder-modal.service.mjs +26 -0
  39. package/esm2020/lib/modals/create-folder-modal/index.mjs +3 -0
  40. package/esm2020/lib/modals/index.mjs +5 -0
  41. package/esm2020/lib/modals/move-file-modal/index.mjs +3 -0
  42. package/esm2020/lib/modals/move-file-modal/move-file-modal.component.mjs +45 -0
  43. package/esm2020/lib/modals/move-file-modal/move-file-modal.service.mjs +82 -0
  44. package/esm2020/lib/modals/rename-modal/index.mjs +3 -0
  45. package/esm2020/lib/modals/rename-modal/rename-modal.component.mjs +54 -0
  46. package/esm2020/lib/modals/rename-modal/rename-modal.service.mjs +33 -0
  47. package/esm2020/lib/models/common-types.mjs +2 -0
  48. package/esm2020/lib/models/config-options.mjs +2 -0
  49. package/esm2020/lib/models/index.mjs +3 -0
  50. package/esm2020/lib/services/delete.service.mjs +37 -0
  51. package/esm2020/lib/services/directory-tree.service.mjs +117 -0
  52. package/esm2020/lib/services/download.service.mjs +29 -0
  53. package/esm2020/lib/services/index.mjs +8 -0
  54. package/esm2020/lib/services/move.service.mjs +40 -0
  55. package/esm2020/lib/services/navigator.service.mjs +106 -0
  56. package/esm2020/lib/services/update-stream.service.mjs +34 -0
  57. package/esm2020/lib/services/upload.service.mjs +262 -0
  58. package/esm2020/lib/tokens/extensions.token.mjs +18 -0
  59. package/esm2020/lib/tokens/index.mjs +2 -0
  60. package/esm2020/lib/utils/functions.mjs +19 -0
  61. package/esm2020/lib/utils/index.mjs +2 -0
  62. package/esm2020/proxy/lib/index.mjs +4 -0
  63. package/esm2020/proxy/lib/proxy/abp/content/index.mjs +2 -0
  64. package/esm2020/proxy/lib/proxy/abp/content/models.mjs +2 -0
  65. package/esm2020/proxy/lib/proxy/file-management/directories/directory-descriptor.service.mjs +52 -0
  66. package/esm2020/proxy/lib/proxy/file-management/directories/index.mjs +3 -0
  67. package/esm2020/proxy/lib/proxy/file-management/directories/models.mjs +2 -0
  68. package/esm2020/proxy/lib/proxy/file-management/files/file-descriptor.service.mjs +66 -0
  69. package/esm2020/proxy/lib/proxy/file-management/files/file-icon-type.enum.mjs +8 -0
  70. package/esm2020/proxy/lib/proxy/file-management/files/index.mjs +4 -0
  71. package/esm2020/proxy/lib/proxy/file-management/files/models.mjs +2 -0
  72. package/esm2020/proxy/public-api.mjs +2 -0
  73. package/esm2020/proxy/volo-abp.ng.file-management-proxy.mjs +5 -0
  74. package/esm2020/public-api.mjs +5 -0
  75. package/esm2020/volo-abp.ng.file-management.mjs +5 -0
  76. package/fesm2015/{volo-abp.ng.file-management-common.js → volo-abp.ng.file-management-common.mjs} +1 -1
  77. package/fesm2015/volo-abp.ng.file-management-common.mjs.map +1 -0
  78. package/fesm2015/{volo-abp.ng.file-management-config.js → volo-abp.ng.file-management-config.mjs} +5 -5
  79. package/fesm2015/volo-abp.ng.file-management-config.mjs.map +1 -0
  80. package/fesm2015/{volo-abp.ng.file-management-proxy.js → volo-abp.ng.file-management-proxy.mjs} +9 -9
  81. package/fesm2015/volo-abp.ng.file-management-proxy.mjs.map +1 -0
  82. package/fesm2015/volo-abp.ng.file-management.mjs +1567 -0
  83. package/fesm2015/volo-abp.ng.file-management.mjs.map +1 -0
  84. package/fesm2020/volo-abp.ng.file-management-common.mjs +38 -0
  85. package/fesm2020/volo-abp.ng.file-management-common.mjs.map +1 -0
  86. package/fesm2020/volo-abp.ng.file-management-config.mjs +53 -0
  87. package/fesm2020/volo-abp.ng.file-management-config.mjs.map +1 -0
  88. package/fesm2020/volo-abp.ng.file-management-proxy.mjs +128 -0
  89. package/fesm2020/volo-abp.ng.file-management-proxy.mjs.map +1 -0
  90. package/fesm2020/volo-abp.ng.file-management.mjs +1567 -0
  91. package/fesm2020/volo-abp.ng.file-management.mjs.map +1 -0
  92. package/package.json +47 -12
  93. package/proxy/package.json +5 -5
  94. package/proxy/src/lib/proxy/README.md +17 -0
  95. package/bundles/volo-abp.ng.file-management-common.umd.js +0 -1
  96. package/bundles/volo-abp.ng.file-management-config.umd.js +0 -1
  97. package/bundles/volo-abp.ng.file-management-proxy.umd.js +0 -1
  98. package/bundles/volo-abp.ng.file-management.umd.js +0 -16
  99. package/esm2015/common/enums/index.js +0 -1
  100. package/esm2015/common/enums/route-names.js +0 -1
  101. package/esm2015/common/public-api.js +0 -1
  102. package/esm2015/common/tokens/features.token.js +0 -1
  103. package/esm2015/common/tokens/index.js +0 -1
  104. package/esm2015/common/volo-abp.ng.file-management-common.js +0 -1
  105. package/esm2015/config/enums/index.js +0 -1
  106. package/esm2015/config/enums/policy-names.js +0 -1
  107. package/esm2015/config/enums/route-names.js +0 -1
  108. package/esm2015/config/file-management-config.module.js +0 -1
  109. package/esm2015/config/providers/index.js +0 -1
  110. package/esm2015/config/providers/route.provider.js +0 -1
  111. package/esm2015/config/public-api.js +0 -1
  112. package/esm2015/config/volo-abp.ng.file-management-config.js +0 -1
  113. package/esm2015/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.js +0 -1
  114. package/esm2015/lib/components/file-management-buttons/file-management-buttons.component.js +0 -1
  115. package/esm2015/lib/components/file-management-directory-tree/file-management-directory-tree.component.js +0 -1
  116. package/esm2015/lib/components/file-management-folder-content/file-management-folder-content.component.js +0 -1
  117. package/esm2015/lib/components/file-management-folder-filter/file-management-folder-filter.component.js +0 -1
  118. package/esm2015/lib/components/file-management-folder-panel/file-management-folder-panel.component.js +0 -1
  119. package/esm2015/lib/components/index.js +0 -1
  120. package/esm2015/lib/defaults/default-file-management-entity-actions.js +0 -1
  121. package/esm2015/lib/defaults/default-file-management-entity-props.js +0 -1
  122. package/esm2015/lib/defaults/default-file-management-toolbar-actions.js +0 -1
  123. package/esm2015/lib/defaults/index.js +0 -1
  124. package/esm2015/lib/enums/components.js +0 -1
  125. package/esm2015/lib/enums/index.js +0 -1
  126. package/esm2015/lib/file-management-routing.module.js +0 -1
  127. package/esm2015/lib/file-management.component.js +0 -1
  128. package/esm2015/lib/file-management.initializer.js +0 -1
  129. package/esm2015/lib/file-management.module.js +0 -1
  130. package/esm2015/lib/guards/file-management.guard.js +0 -1
  131. package/esm2015/lib/index.js +0 -1
  132. package/esm2015/lib/modals/base-modal.component.js +0 -1
  133. package/esm2015/lib/modals/create-folder-modal/create-folder-modal.component.js +0 -1
  134. package/esm2015/lib/modals/create-folder-modal/create-folder-modal.service.js +0 -1
  135. package/esm2015/lib/modals/create-folder-modal/index.js +0 -1
  136. package/esm2015/lib/modals/index.js +0 -1
  137. package/esm2015/lib/modals/move-file-modal/index.js +0 -1
  138. package/esm2015/lib/modals/move-file-modal/move-file-modal.component.js +0 -1
  139. package/esm2015/lib/modals/move-file-modal/move-file-modal.service.js +0 -1
  140. package/esm2015/lib/modals/rename-modal/index.js +0 -1
  141. package/esm2015/lib/modals/rename-modal/rename-modal.component.js +0 -1
  142. package/esm2015/lib/modals/rename-modal/rename-modal.service.js +0 -1
  143. package/esm2015/lib/models/common-types.js +0 -1
  144. package/esm2015/lib/models/config-options.js +0 -1
  145. package/esm2015/lib/models/index.js +0 -1
  146. package/esm2015/lib/services/delete.service.js +0 -1
  147. package/esm2015/lib/services/directory-tree.service.js +0 -1
  148. package/esm2015/lib/services/download.service.js +0 -1
  149. package/esm2015/lib/services/index.js +0 -1
  150. package/esm2015/lib/services/move.service.js +0 -1
  151. package/esm2015/lib/services/navigator.service.js +0 -1
  152. package/esm2015/lib/services/update-stream.service.js +0 -1
  153. package/esm2015/lib/services/upload.service.js +0 -1
  154. package/esm2015/lib/tokens/extensions.token.js +0 -1
  155. package/esm2015/lib/tokens/index.js +0 -1
  156. package/esm2015/lib/utils/functions.js +0 -1
  157. package/esm2015/lib/utils/index.js +0 -1
  158. package/esm2015/proxy/lib/index.js +0 -1
  159. package/esm2015/proxy/lib/proxy/abp/content/index.js +0 -1
  160. package/esm2015/proxy/lib/proxy/abp/content/models.js +0 -1
  161. package/esm2015/proxy/lib/proxy/file-management/directories/directory-descriptor.service.js +0 -1
  162. package/esm2015/proxy/lib/proxy/file-management/directories/index.js +0 -1
  163. package/esm2015/proxy/lib/proxy/file-management/directories/models.js +0 -1
  164. package/esm2015/proxy/lib/proxy/file-management/files/file-descriptor.service.js +0 -1
  165. package/esm2015/proxy/lib/proxy/file-management/files/file-icon-type.enum.js +0 -1
  166. package/esm2015/proxy/lib/proxy/file-management/files/index.js +0 -1
  167. package/esm2015/proxy/lib/proxy/file-management/files/models.js +0 -1
  168. package/esm2015/proxy/public-api.js +0 -1
  169. package/esm2015/proxy/volo-abp.ng.file-management-proxy.js +0 -1
  170. package/esm2015/public-api.js +0 -1
  171. package/esm2015/volo-abp.ng.file-management.js +0 -1
  172. package/fesm2015/volo-abp.ng.file-management.js +0 -1616
@@ -1,1616 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, Injectable, InjectionToken, Inject, ViewEncapsulation, NgModule } from '@angular/core';
3
- import * as i10 from '@angular/common';
4
- import * as i1 from '@abp/ng.core';
5
- import { InternalStore, ListService, SubscriptionService, ConfigStateService, AuthGuard, PermissionGuard, LazyModuleFactory, CoreModule } from '@abp/ng.core';
6
- import * as i1$1 from '@abp/ng.theme.shared';
7
- import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
8
- import * as i5 from '@angular/common/http';
9
- import { Uppy } from '@uppy/core';
10
- import Dashboard from '@uppy/dashboard';
11
- import XHRUpload from '@uppy/xhr-upload';
12
- import * as i1$2 from '@volo/abp.ng.file-management/proxy';
13
- import * as i1$3 from 'rxjs';
14
- import { merge, Subscription, of, fromEvent } from 'rxjs';
15
- import { filter, skip, tap, take, switchMap, map, finalize, mapTo, bufferTime } from 'rxjs/operators';
16
- import * as i7 from '@abp/ng.theme.shared/extensions';
17
- import { EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
18
- import * as i6 from '@abp/ng.components/tree';
19
- import { TreeAdapter, TreeModule } from '@abp/ng.components/tree';
20
- import * as i2 from '@angular/forms';
21
- import { Validators } from '@angular/forms';
22
- import * as i4 from '@ngx-validate/core';
23
- import { NgxValidateCoreModule } from '@ngx-validate/core';
24
- import * as i4$1 from '@swimlane/ngx-datatable';
25
- import * as i11 from '@ng-bootstrap/ng-bootstrap';
26
- import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
27
- import * as i1$4 from '@angular/router';
28
- import { RouterModule } from '@angular/router';
29
- import * as i2$1 from '@abp/ng.components/page';
30
- import { PageModule } from '@abp/ng.components/page';
31
- import { FILE_MANAGEMENT_FEATURES } from '@volo/abp.ng.file-management/common';
32
-
33
- class FileManagementBreadcrumbComponent {
34
- constructor() {
35
- this.rootBreadcrumbName = 'FileManagement::AllFiles';
36
- this.breadcrumbClick = new EventEmitter();
37
- this.trackByIdAndName = (_, item) => item.id + '-' + item.name;
38
- }
39
- onClick(item) {
40
- this.breadcrumbClick.emit(item);
41
- }
42
- }
43
- FileManagementBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
44
- FileManagementBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementBreadcrumbComponent, selector: "abp-file-management-breadcrumb", inputs: { rootBreadcrumbName: "rootBreadcrumbName", navigatedFolders: "navigatedFolders" }, outputs: { breadcrumbClick: "breadcrumbClick" }, ngImport: i0, template: "<ol class=\"breadcrumb\">\r\n <li\r\n *ngFor=\"\r\n let folder of navigatedFolders;\r\n let last = last;\r\n let first = first;\r\n trackBy: trackByIdAndName\r\n \"\r\n (click)=\"onClick(folder)\"\r\n class=\"breadcrumb-item\"\r\n [class.root]=\"first\"\r\n [class.active]=\"last && !first\"\r\n aria-current=\"page\"\r\n >\r\n <span class=\"breadcrumb-item-text\">\r\n <span *ngIf=\"first\">{{ rootBreadcrumbName | abpLocalization }}</span>\r\n <span *ngIf=\"!first\">{{ folder.name }}</span>\r\n </span>\r\n </li>\r\n</ol>\r\n", styles: [".breadcrumb{padding:3px 0 0;opacity:1;font-size:1em}.breadcrumb-item{padding:0}.breadcrumb-item.active .breadcrumb-item-text{opacity:.5}.breadcrumb-item-text{padding:3px 8px;border-radius:3px}.breadcrumb-item-text:hover{cursor:pointer;background:var(--background)}.breadcrumb-item+.breadcrumb-item:before{content:\">\";opacity:.3;margin:3px 0 0 3px}\n"], directives: [{ type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementBreadcrumbComponent, decorators: [{
46
- type: Component,
47
- args: [{
48
- selector: 'abp-file-management-breadcrumb',
49
- templateUrl: './file-management-breadcrumb.component.html',
50
- styleUrls: ['./file-management-breadcrumb.component.css'],
51
- changeDetection: ChangeDetectionStrategy.OnPush,
52
- }]
53
- }], propDecorators: { rootBreadcrumbName: [{
54
- type: Input
55
- }], navigatedFolders: [{
56
- type: Input
57
- }], breadcrumbClick: [{
58
- type: Output
59
- }] } });
60
-
61
- class UpdateStreamService {
62
- constructor() {
63
- this.store = new InternalStore({});
64
- this.currentDirectory$ = this.sliceState((state) => state.currentDirectory);
65
- this.directoryRename$ = this.sliceState((state) => state.renamedDirectory);
66
- this.directoryDelete$ = this.sliceState((state) => state.deletedDirectory);
67
- // this should be sliceUpdate, because if the user creates multiple folder within the same directory,
68
- // sliceState won't trigger the subscriber again since the directory has not changed.
69
- this.directoryCreate$ = this.store.sliceUpdate((state) => state.createdDirectory);
70
- this.directoryMove$ = this.sliceState((state) => state.movedDirectory);
71
- this.contentRefresh$ = merge(this.sliceState((state) => state.content), this.currentDirectory$, this.directoryCreate$.pipe(filter((id) => id === this.currentDirectory)), this.directoryMove$.pipe(filter(({ oldParentId, newParentId }) => oldParentId === this.currentDirectory ||
72
- newParentId === this.currentDirectory)));
73
- this.patchStore = (state) => this.store.patch(state);
74
- this.refreshContent = () => this.store.patch({ content: new Date().getTime() });
75
- }
76
- get currentDirectory() {
77
- return this.store.state.currentDirectory;
78
- }
79
- sliceState(fn) {
80
- // skip initial empty values
81
- return this.store.sliceState(fn).pipe(skip(1));
82
- }
83
- }
84
- UpdateStreamService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UpdateStreamService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
85
- UpdateStreamService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UpdateStreamService });
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UpdateStreamService, decorators: [{
87
- type: Injectable
88
- }] });
89
-
90
- class DeleteService {
91
- constructor(confirmationService, directoryService, fileService, updateStream, toaster) {
92
- this.confirmationService = confirmationService;
93
- this.directoryService = directoryService;
94
- this.fileService = fileService;
95
- this.updateStream = updateStream;
96
- this.toaster = toaster;
97
- }
98
- deleteFolder(content) {
99
- return this.delete('FileManagement::DirectoryDeleteConfirmationMessage', content, this.directoryService).pipe(tap((_) => this.updateStream.patchStore({ deletedDirectory: content.id })));
100
- }
101
- deleteFile(content) {
102
- return this.delete('FileManagement::FileDeleteConfirmationMessage', content, this.fileService).pipe(tap((_) => this.updateStream.refreshContent()));
103
- }
104
- delete(message, content, service) {
105
- return this.confirmationService
106
- .warn(message, 'FileManagement::AreYouSure')
107
- .pipe(filter((status) => status === Confirmation.Status.confirm), take(1), switchMap((_) => service.delete(content.id)), tap((_) => {
108
- this.toaster.warn('FileManagement::SuccessfullyDeleted');
109
- }));
110
- }
111
- }
112
- DeleteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DeleteService, deps: [{ token: i1$1.ConfirmationService }, { token: i1$2.DirectoryDescriptorService }, { token: i1$2.FileDescriptorService }, { token: UpdateStreamService }, { token: i1$1.ToasterService }], target: i0.ɵɵFactoryTarget.Injectable });
113
- DeleteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DeleteService });
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DeleteService, decorators: [{
115
- type: Injectable
116
- }], ctorParameters: function () { return [{ type: i1$1.ConfirmationService }, { type: i1$2.DirectoryDescriptorService }, { type: i1$2.FileDescriptorService }, { type: UpdateStreamService }, { type: i1$1.ToasterService }]; } });
117
-
118
- class DownloadService {
119
- constructor(restService, fileDescriptorService, environment) {
120
- this.restService = restService;
121
- this.fileDescriptorService = fileDescriptorService;
122
- this.environment = environment;
123
- this.apiName = 'FileManagement';
124
- }
125
- get apiUrl() {
126
- return this.environment.getApiUrl(this.apiName);
127
- }
128
- downloadFile(file) {
129
- return this.fileDescriptorService.getDownloadToken(file.id).pipe(tap((res) => {
130
- window.open(`${this.apiUrl}/api/file-management/file-descriptor/download/${file.id}?token=${res.token}`, '_self');
131
- }));
132
- }
133
- }
134
- DownloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DownloadService, deps: [{ token: i1.RestService }, { token: i1$2.FileDescriptorService }, { token: i1.EnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable });
135
- DownloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DownloadService });
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DownloadService, decorators: [{
137
- type: Injectable
138
- }], ctorParameters: function () { return [{ type: i1.RestService }, { type: i1$2.FileDescriptorService }, { type: i1.EnvironmentService }]; } });
139
-
140
- const ROOT_ID = 'ROOT_ID';
141
- const ROOT_NODE = {
142
- id: ROOT_ID,
143
- parentId: null,
144
- name: 'All Files',
145
- isRoot: true,
146
- hasChildren: true,
147
- };
148
- function mapRootIdToEmpty(id) {
149
- return id === ROOT_ID ? null : id;
150
- }
151
- class DirectoryTreeService {
152
- constructor(directoryService, updateStream) {
153
- this.directoryService = directoryService;
154
- this.updateStream = updateStream;
155
- this.store = new InternalStore([]);
156
- this.directoryTree$ = this.store.sliceState((state) => state);
157
- this.subscription = new Subscription();
158
- this.extendedKeys = [];
159
- this.updateDirectories = (currentFolderId = null) => {
160
- this.collapseFolder(currentFolderId);
161
- this.fetchDirectories(mapRootIdToEmpty(currentFolderId)).subscribe((items) => {
162
- this.updateTree(currentFolderId, items);
163
- });
164
- };
165
- this.handleMove = ({ oldParentId, newParentId }) => {
166
- // first clear children of both node to avoid race condition
167
- this.treeHolder.handleUpdate({ key: oldParentId, children: [] });
168
- this.treeHolder.handleUpdate({ key: newParentId, children: [] });
169
- this.updateDirectories(oldParentId);
170
- this.updateDirectories(newParentId);
171
- };
172
- this.setupListener();
173
- }
174
- ngOnDestroy() {
175
- this.subscription.unsubscribe();
176
- }
177
- setupListener() {
178
- this.subscription.add(merge(this.updateStream.currentDirectory$, this.updateStream.directoryRename$.pipe(map((folder) => this.getParentOf(folder.id))), this.updateStream.directoryCreate$, this.updateStream.directoryDelete$.pipe(map((id) => this.getParentOf(id)))).subscribe(this.updateDirectories));
179
- this.subscription.add(this.updateStream.directoryMove$.subscribe(this.handleMove));
180
- }
181
- findFullPathOf(folder) {
182
- let currentId = folder === null || folder === void 0 ? void 0 : folder.id;
183
- const fullList = this.treeHolder.getList();
184
- const retVal = [];
185
- while (currentId) {
186
- const node = fullList.find((i) => i.id === currentId);
187
- if (node && node.id !== ROOT_ID) {
188
- retVal.push(node);
189
- }
190
- currentId = node === null || node === void 0 ? void 0 : node.parentId;
191
- }
192
- return retVal
193
- .concat(ROOT_NODE)
194
- .map((item) => ({ id: item.id, name: item.name }))
195
- .reverse();
196
- }
197
- getParentOf(id) {
198
- const node = this.treeHolder.getList().find((item) => item.id === id);
199
- return (node === null || node === void 0 ? void 0 : node.parentId) || ROOT_ID;
200
- }
201
- getRootNode() {
202
- return ROOT_NODE;
203
- }
204
- collapseFolder(id) {
205
- const index = this.extendedKeys.indexOf(id);
206
- if (index > -1) {
207
- this.extendedKeys.splice(index, 1);
208
- }
209
- }
210
- updateTree(currentFolderId, items) {
211
- if (items) {
212
- if (this.treeHolder && currentFolderId) {
213
- this.onTreeExistAndNavigatedToNode(currentFolderId, items);
214
- }
215
- else {
216
- this.onTreeNotExistOrNavigatedToRoot(items);
217
- }
218
- this.updateStore();
219
- }
220
- }
221
- updateStore() {
222
- this.store.patch(this.treeHolder.getTree());
223
- }
224
- onTreeExistAndNavigatedToNode(parentId, list) {
225
- this.treeHolder.handleUpdate({ key: parentId, children: list });
226
- this.extendedKeys = [...this.extendedKeys, parentId];
227
- }
228
- onTreeNotExistOrNavigatedToRoot(result) {
229
- this.extendedKeys = [ROOT_ID];
230
- this.treeHolder = new TreeAdapter([ROOT_NODE, ...result]);
231
- }
232
- fetchDirectories(id) {
233
- return this.directoryService
234
- .getList(id)
235
- .pipe(map((result) => this.bindInitialListToRoot(result.items)));
236
- }
237
- bindInitialListToRoot(list) {
238
- return list.map((l) => (Object.assign(Object.assign({}, l), { parentId: l.parentId || ROOT_ID })));
239
- }
240
- }
241
- DirectoryTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DirectoryTreeService, deps: [{ token: i1$2.DirectoryDescriptorService }, { token: UpdateStreamService }], target: i0.ɵɵFactoryTarget.Injectable });
242
- DirectoryTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DirectoryTreeService });
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: DirectoryTreeService, decorators: [{
244
- type: Injectable
245
- }], ctorParameters: function () { return [{ type: i1$2.DirectoryDescriptorService }, { type: UpdateStreamService }]; } });
246
-
247
- class NavigatorService {
248
- constructor(directory, updateStream) {
249
- this.directory = directory;
250
- this.updateStream = updateStream;
251
- this.navigatedFolders = [ROOT_NODE];
252
- this.store = new InternalStore(this.navigatedFolders);
253
- this.navigatedFolderPath$ = this.store.sliceState((state) => state, (s1, s2) => s1 === s2);
254
- this.subscription = new Subscription();
255
- this.updateFolderName = (updatedFolder) => {
256
- const newNavigatedFolders = [...this.navigatedFolders];
257
- newNavigatedFolders
258
- .filter((folder) => folder.id === updatedFolder.id)
259
- .forEach((folder) => (folder.name = updatedFolder.name));
260
- this.next(newNavigatedFolders);
261
- };
262
- this.removeDeletedFolder = (id) => {
263
- const index = this.findIndexOf(id);
264
- if (index > -1) {
265
- this.next(this.navigatedFolders.slice(0, index));
266
- }
267
- };
268
- this.updateMovedFolder = ({ id, newParentId, }) => {
269
- const selfIndex = this.findIndexOf(id);
270
- // this means that moved folder is being shown in the breadcrumb and needs to be dealt with
271
- if (selfIndex > -1) {
272
- const parentIndex = this.findIndexOf(newParentId);
273
- let newPaths = [];
274
- // if the new parent is found, this means that this folder is moved upwards within its own absolute path.
275
- // then we can simply move to the its new parent.
276
- if (parentIndex > -1) {
277
- newPaths = this.navigatedFolders.slice(0, parentIndex + 1);
278
- }
279
- else {
280
- // if the new parent is not found, it could mean either that it is somewhere else in the tree or it has not been visited at all.
281
- // It is hard to find the new absolute path, so just return to the root.
282
- newPaths = [this.directory.getRootNode()];
283
- }
284
- this.next(newPaths);
285
- }
286
- };
287
- this.setupListeners();
288
- }
289
- ngOnDestroy() {
290
- if (this.subscription) {
291
- this.subscription.unsubscribe();
292
- }
293
- }
294
- goToFolder(folder) {
295
- this.updateCurrentFolderPath(folder);
296
- }
297
- goToRoot() {
298
- this.goToFolder(null);
299
- }
300
- goUpFolder() {
301
- if (this.navigatedFolders.length === 0) {
302
- // already at the root, do nothing.
303
- return;
304
- }
305
- else if (this.navigatedFolders.length === 1) {
306
- this.goToRoot();
307
- }
308
- else {
309
- const folder = this.navigatedFolders[this.navigatedFolders.length - 2];
310
- this.goToFolder(folder);
311
- }
312
- }
313
- getCurrentFolder() {
314
- return (this.navigatedFolders.length &&
315
- this.navigatedFolders[this.navigatedFolders.length - 1]);
316
- }
317
- getCurrentFolderId() {
318
- var _a;
319
- return mapRootIdToEmpty((_a = this.getCurrentFolder()) === null || _a === void 0 ? void 0 : _a.id);
320
- }
321
- updateCurrentFolderPath(folder) {
322
- this.next([...this.directory.findFullPathOf(folder)]);
323
- }
324
- next(newValue) {
325
- this.navigatedFolders = newValue;
326
- this.store.patch(this.navigatedFolders);
327
- this.updateStream.patchStore({
328
- currentDirectory: this.getCurrentFolderId(),
329
- });
330
- }
331
- setupListeners() {
332
- this.subscription.add(this.updateStream.directoryRename$.subscribe(this.updateFolderName));
333
- this.subscription.add(this.updateStream.directoryDelete$.subscribe(this.removeDeletedFolder));
334
- this.subscription.add(this.updateStream.directoryMove$.subscribe(this.updateMovedFolder));
335
- }
336
- findIndexOf(folderId) {
337
- return this.navigatedFolders.findIndex((folder) => folder.id === folderId);
338
- }
339
- }
340
- NavigatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: NavigatorService, deps: [{ token: DirectoryTreeService }, { token: UpdateStreamService }], target: i0.ɵɵFactoryTarget.Injectable });
341
- NavigatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: NavigatorService });
342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: NavigatorService, decorators: [{
343
- type: Injectable
344
- }], ctorParameters: function () { return [{ type: DirectoryTreeService }, { type: UpdateStreamService }]; } });
345
-
346
- class BaseModalComponent {
347
- constructor() {
348
- this.size = 'md';
349
- this.visibleChange = new EventEmitter();
350
- this.contentSaved = new EventEmitter();
351
- this.loading = false;
352
- this.success = (response) => {
353
- this.closeModal();
354
- this.contentSaved.emit(response);
355
- };
356
- }
357
- get self() {
358
- return this;
359
- }
360
- onVisibleChange(event) {
361
- this.visible = event;
362
- this.visibleChange.emit(this.visible);
363
- }
364
- closeModal() {
365
- this.onVisibleChange(false);
366
- this.clear();
367
- }
368
- clear() { }
369
- save() {
370
- if (this.shouldSave()) {
371
- this.loading = true;
372
- this.saveAction()
373
- .pipe(finalize(() => {
374
- this.loading = false;
375
- }))
376
- .subscribe(this.success);
377
- }
378
- }
379
- // this method will be overwritten by children
380
- shouldSave() {
381
- return true;
382
- }
383
- // this method will be overwritten by children
384
- saveAction() {
385
- return of({});
386
- }
387
- }
388
- BaseModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BaseModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
389
- BaseModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BaseModalComponent, selector: "abp-file-management-modal", inputs: { title: "title", size: "size", visible: "visible", parent: "parent" }, outputs: { visibleChange: "visibleChange", contentSaved: "contentSaved" }, ngImport: i0, template: `
390
- <abp-modal
391
- [options]="{ size: parent.size }"
392
- [visible]="parent.visible"
393
- (visibleChange)="parent.onVisibleChange($event)"
394
- >
395
- <ng-template #abpHeader>
396
- <h5 class="modal-title">
397
- {{ 'FileManagement::' + title | abpLocalization }}
398
- </h5>
399
- </ng-template>
400
-
401
- <ng-template #abpBody>
402
- <ng-content></ng-content>
403
- </ng-template>
404
-
405
- <ng-template #abpFooter>
406
- <button
407
- (click)="parent.closeModal()"
408
- type="button"
409
- [disabled]="parent.loading"
410
- class="btn btn-secondary"
411
- >
412
- {{ 'AbpUi::Cancel' | abpLocalization }}
413
- </button>
414
- <abp-button
415
- type="abp-button"
416
- [loading]="loading"
417
- iconClass="fa fa-check"
418
- (click)="parent.save()"
419
- >
420
- {{ 'AbpUi::Save' | abpLocalization }}
421
- </abp-button>
422
- </ng-template>
423
- </abp-modal>
424
- `, isInline: true, components: [{ type: i1$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i1$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.Default });
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BaseModalComponent, decorators: [{
426
- type: Component,
427
- args: [{
428
- selector: 'abp-file-management-modal',
429
- // do not use OnPush here, because of `parent` usage, it won't work
430
- changeDetection: ChangeDetectionStrategy.Default,
431
- template: `
432
- <abp-modal
433
- [options]="{ size: parent.size }"
434
- [visible]="parent.visible"
435
- (visibleChange)="parent.onVisibleChange($event)"
436
- >
437
- <ng-template #abpHeader>
438
- <h5 class="modal-title">
439
- {{ 'FileManagement::' + title | abpLocalization }}
440
- </h5>
441
- </ng-template>
442
-
443
- <ng-template #abpBody>
444
- <ng-content></ng-content>
445
- </ng-template>
446
-
447
- <ng-template #abpFooter>
448
- <button
449
- (click)="parent.closeModal()"
450
- type="button"
451
- [disabled]="parent.loading"
452
- class="btn btn-secondary"
453
- >
454
- {{ 'AbpUi::Cancel' | abpLocalization }}
455
- </button>
456
- <abp-button
457
- type="abp-button"
458
- [loading]="loading"
459
- iconClass="fa fa-check"
460
- (click)="parent.save()"
461
- >
462
- {{ 'AbpUi::Save' | abpLocalization }}
463
- </abp-button>
464
- </ng-template>
465
- </abp-modal>
466
- `,
467
- }]
468
- }], propDecorators: { title: [{
469
- type: Input
470
- }], size: [{
471
- type: Input
472
- }], visible: [{
473
- type: Input
474
- }], visibleChange: [{
475
- type: Output
476
- }], contentSaved: [{
477
- type: Output
478
- }], parent: [{
479
- type: Input
480
- }] } });
481
-
482
- class RenameModalService {
483
- constructor(directoryService, fileService, updateStream) {
484
- this.directoryService = directoryService;
485
- this.fileService = fileService;
486
- this.updateStream = updateStream;
487
- }
488
- rename(contentToRename) {
489
- const id = contentToRename.id;
490
- const name = contentToRename.name;
491
- if (contentToRename.isDirectory) {
492
- return this.callService(this.directoryService, id, name).pipe(tap((_) => this.updateStream.patchStore({ renamedDirectory: { id, name } })));
493
- }
494
- else {
495
- return this.callService(this.fileService, id, name).pipe(tap((_) => this.updateStream.refreshContent()));
496
- }
497
- }
498
- callService(service, id, name) {
499
- return service.rename(id, { name }).pipe(mapTo(true));
500
- }
501
- }
502
- RenameModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RenameModalService, deps: [{ token: i1$2.DirectoryDescriptorService }, { token: i1$2.FileDescriptorService }, { token: UpdateStreamService }], target: i0.ɵɵFactoryTarget.Injectable });
503
- RenameModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RenameModalService });
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RenameModalService, decorators: [{
505
- type: Injectable
506
- }], ctorParameters: function () { return [{ type: i1$2.DirectoryDescriptorService }, { type: i1$2.FileDescriptorService }, { type: UpdateStreamService }]; } });
507
-
508
- class RenameModalComponent extends BaseModalComponent {
509
- constructor(service, fb) {
510
- super();
511
- this.service = service;
512
- this.fb = fb;
513
- this.form = this.fb.group({
514
- name: ['', Validators.required],
515
- });
516
- this.contentToRenameChange = new EventEmitter();
517
- }
518
- set contentToRename(val) {
519
- this._contentToRename = val;
520
- this.form.controls.name.patchValue(val === null || val === void 0 ? void 0 : val.name);
521
- }
522
- get contentToRename() {
523
- return this._contentToRename;
524
- }
525
- ngOnInit() { }
526
- saveAction() {
527
- return this.service.rename(Object.assign(Object.assign({}, this.contentToRename), this.form.value));
528
- }
529
- shouldSave() {
530
- return this.form.valid;
531
- }
532
- clear() {
533
- this.form.reset();
534
- this.contentToRename = null;
535
- this.contentToRenameChange.emit(this.contentToRename);
536
- }
537
- }
538
- RenameModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RenameModalComponent, deps: [{ token: RenameModalService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
539
- RenameModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: RenameModalComponent, selector: "abp-rename-modal", inputs: { contentToRename: "contentToRename" }, outputs: { contentToRenameChange: "contentToRenameChange" }, providers: [RenameModalService], usesInheritance: true, ngImport: i0, template: "<abp-file-management-modal title=\"Rename\" [parent]=\"self\">\r\n <form [formGroup]=\"form\" (keyup.enter)=\"save()\">\r\n <div class=\"form-group\">\r\n <label for=\"renameFileInput\"\r\n >{{ \"FileManagement::Name\" | abpLocalization }} *</label\r\n >\r\n <input\r\n formControlName=\"name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"renameFileInput\"\r\n />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>\r\n", components: [{ type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "size", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }], directives: [{ type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RenameModalComponent, decorators: [{
541
- type: Component,
542
- args: [{
543
- selector: 'abp-rename-modal',
544
- templateUrl: './rename-modal.component.html',
545
- changeDetection: ChangeDetectionStrategy.OnPush,
546
- providers: [RenameModalService],
547
- }]
548
- }], ctorParameters: function () { return [{ type: RenameModalService }, { type: i2.FormBuilder }]; }, propDecorators: { contentToRename: [{
549
- type: Input
550
- }], contentToRenameChange: [{
551
- type: Output
552
- }] } });
553
-
554
- class MoveService {
555
- constructor(service, confirmation, updateStream, toaster) {
556
- this.service = service;
557
- this.confirmation = confirmation;
558
- this.updateStream = updateStream;
559
- this.toaster = toaster;
560
- }
561
- moveTo(source, target, oldParentId) {
562
- const id = source.id;
563
- const newParentId = mapRootIdToEmpty(target.id);
564
- return this.confirmation
565
- .warn('FileManagement::DirectoryMoveConfirmMessage', 'FileManagement::AreYouSure', { messageLocalizationParams: [source.name, target.name] })
566
- .pipe(filter((status) => status === Confirmation.Status.confirm), switchMap((_) => this.service.move({ id, newParentId })), tap((_) => {
567
- this.updateStream.patchStore({
568
- movedDirectory: {
569
- id,
570
- newParentId,
571
- oldParentId,
572
- },
573
- });
574
- this.toaster.success('FileManagement::SuccessfullyMoved');
575
- }));
576
- }
577
- }
578
- MoveService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveService, deps: [{ token: i1$2.DirectoryDescriptorService }, { token: i1$1.ConfirmationService }, { token: UpdateStreamService }, { token: i1$1.ToasterService }], target: i0.ɵɵFactoryTarget.Injectable });
579
- MoveService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveService });
580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveService, decorators: [{
581
- type: Injectable
582
- }], ctorParameters: function () { return [{ type: i1$2.DirectoryDescriptorService }, { type: i1$1.ConfirmationService }, { type: UpdateStreamService }, { type: i1$1.ToasterService }]; } });
583
-
584
- class MoveFileModalService {
585
- constructor(service, fileService, updateStream, toaster, moveService, navigatorService) {
586
- this.service = service;
587
- this.fileService = fileService;
588
- this.updateStream = updateStream;
589
- this.toaster = toaster;
590
- this.moveService = moveService;
591
- this.navigatorService = navigatorService;
592
- this.directoryContentStore = new InternalStore([]);
593
- this.directoryContent$ = this.directoryContentStore.sliceState((state) => state);
594
- this.breadcrumbStore = new InternalStore([ROOT_NODE]);
595
- this.breadcrumbs$ = this.breadcrumbStore.sliceState((state) => state);
596
- }
597
- reset() {
598
- this.breadcrumbStore.reset();
599
- this.directoryContentStore.reset();
600
- this.updateContent().subscribe();
601
- }
602
- updateContent() {
603
- return this.service
604
- .getList(this.getCurrentFolderIdForRequest())
605
- .pipe(tap((content) => this.directoryContentStore.patch(content.items)));
606
- }
607
- goTo(folder) {
608
- let navigatedFolders = this.getNavigatedFolders();
609
- const index = navigatedFolders.findIndex((f) => f.id === folder.id);
610
- if (index < 0) {
611
- navigatedFolders = [...navigatedFolders, folder];
612
- }
613
- else {
614
- navigatedFolders = navigatedFolders.slice(0, index + 1);
615
- }
616
- this.breadcrumbStore.patch(navigatedFolders);
617
- this.updateContent().subscribe();
618
- }
619
- move(fileToMove) {
620
- return this.fileService
621
- .move({
622
- id: fileToMove.id,
623
- newDirectoryId: this.getCurrentFolderIdForRequest(),
624
- })
625
- .pipe(tap((_) => {
626
- this.updateStream.refreshContent();
627
- this.toaster.success('FileManagement::SuccessfullyMoved');
628
- }));
629
- }
630
- moveFolder(folderToMove, oldParentId) {
631
- return this.moveService.moveTo(folderToMove, this.getCurrentFolder(), oldParentId);
632
- }
633
- getCurrentFolder() {
634
- const navigatedFolders = this.getNavigatedFolders();
635
- return navigatedFolders[navigatedFolders.length - 1];
636
- }
637
- getCurrentFolderIdForRequest() {
638
- var _a;
639
- const navigatedFolders = this.getNavigatedFolders();
640
- return mapRootIdToEmpty((_a = navigatedFolders[navigatedFolders.length - 1]) === null || _a === void 0 ? void 0 : _a.id);
641
- }
642
- getNavigatedFolders() {
643
- return this.breadcrumbStore.state;
644
- }
645
- }
646
- MoveFileModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveFileModalService, deps: [{ token: i1$2.DirectoryDescriptorService }, { token: i1$2.FileDescriptorService }, { token: UpdateStreamService }, { token: i1$1.ToasterService }, { token: MoveService }, { token: NavigatorService }], target: i0.ɵɵFactoryTarget.Injectable });
647
- MoveFileModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveFileModalService });
648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveFileModalService, decorators: [{
649
- type: Injectable
650
- }], ctorParameters: function () { return [{ type: i1$2.DirectoryDescriptorService }, { type: i1$2.FileDescriptorService }, { type: UpdateStreamService }, { type: i1$1.ToasterService }, { type: MoveService }, { type: NavigatorService }]; } });
651
-
652
- class MoveFileModalComponent extends BaseModalComponent {
653
- constructor(service) {
654
- super();
655
- this.service = service;
656
- }
657
- ngOnChanges({ visible }) {
658
- if (visible.currentValue) {
659
- this.service.reset();
660
- }
661
- }
662
- onBreadcrumbClick(folder) {
663
- this.service.goTo(folder);
664
- }
665
- saveAction() {
666
- if (this.fileToMove.isDirectory) {
667
- return this.service.moveFolder(this.fileToMove, this.oldParentId);
668
- }
669
- else {
670
- return this.service.move(this.fileToMove);
671
- }
672
- }
673
- }
674
- MoveFileModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveFileModalComponent, deps: [{ token: MoveFileModalService }], target: i0.ɵɵFactoryTarget.Component });
675
- MoveFileModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: MoveFileModalComponent, selector: "abp-move-file-modal", inputs: { fileToMove: "fileToMove", oldParentId: "oldParentId" }, providers: [MoveFileModalService, ListService], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<abp-file-management-modal title=\"Move\" [parent]=\"self\">\r\n <span class=\"d-block p-2\">{{\r\n \"FileManagement::MoveToUnder\" | abpLocalization\r\n }}</span>\r\n <abp-file-management-breadcrumb\r\n [navigatedFolders]=\"service.breadcrumbs$ | async\"\r\n rootBreadcrumbName=\"FileManagement::Root\"\r\n (breadcrumbClick)=\"onBreadcrumbClick($event)\"\r\n ></abp-file-management-breadcrumb>\r\n\r\n <ngx-datatable\r\n [rows]=\"service.directoryContent$ | async\"\r\n default\r\n [messages]=\"{ emptyMessage: 'FileManagement::MoveHere' | abpLocalization }\"\r\n >\r\n <ngx-datatable-column\r\n [sortable]=\"true\"\r\n [name]=\"'FileManagement::Name' | abpLocalization\"\r\n >\r\n <ng-template let-row=\"row\" let-i=\"index\" ngx-datatable-cell-template>\r\n <div (click)=\"service.goTo(row)\" class=\"pointer\">\r\n <i class=\"fa fa-folder text-primary me-1\"></i> {{ row.name }}\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n</abp-file-management-modal>\r\n", components: [{ type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "size", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }, { type: FileManagementBreadcrumbComponent, selector: "abp-file-management-breadcrumb", inputs: ["rootBreadcrumbName", "navigatedFolders"], outputs: ["breadcrumbClick"] }, { type: i4$1.DatatableComponent, selector: "ngx-datatable", inputs: ["selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "loadingIndicator", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "groupExpansionDefault", "selectAllRowsOnPage", "virtualization", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity", "rows", "groupedRows", "groupRowsBy", "columns", "limit", "count", "offset", "targetMarkerTemplate", "selectionType", "rowClass", "selectCheck", "displayCheck", "trackByProp", "treeFromRelation", "treeToRelation"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }], directives: [{ type: i1$1.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { type: i4$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { type: i4$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }], pipes: { "abpLocalization": i1.LocalizationPipe, "async": i10.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
676
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MoveFileModalComponent, decorators: [{
677
- type: Component,
678
- args: [{
679
- selector: 'abp-move-file-modal',
680
- templateUrl: './move-file-modal.component.html',
681
- changeDetection: ChangeDetectionStrategy.OnPush,
682
- providers: [MoveFileModalService, ListService],
683
- }]
684
- }], ctorParameters: function () { return [{ type: MoveFileModalService }]; }, propDecorators: { fileToMove: [{
685
- type: Input
686
- }], oldParentId: [{
687
- type: Input
688
- }] } });
689
-
690
- class FileManagementFolderContentComponent {
691
- constructor(list, service, deleteService, downloadService, navigator, updateStream) {
692
- this.list = list;
693
- this.service = service;
694
- this.deleteService = deleteService;
695
- this.downloadService = downloadService;
696
- this.navigator = navigator;
697
- this.updateStream = updateStream;
698
- this.contentUpdate = new EventEmitter();
699
- this.renameModalOpen = false;
700
- this.moveModalOpen = false;
701
- this.updateContent = (items) => {
702
- this.currentList = items;
703
- this.contentUpdate.emit(items);
704
- };
705
- this.content$ = this.list
706
- .hookToQuery((query) => this.service.getContent(Object.assign(Object.assign({}, query), { id: this.updateStream.currentDirectory })))
707
- .pipe(map((result) => result.items), tap(this.updateContent));
708
- this.isDirectoryPresent = (id) => {
709
- return this.currentList.some((item) => item.id === id);
710
- };
711
- this.list.maxResultCount = Infinity;
712
- }
713
- ngOnInit() {
714
- this.subscription = merge(this.updateStream.contentRefresh$, this.updateStream.directoryDelete$.pipe(filter(this.isDirectoryPresent)), this.updateStream.directoryRename$.pipe(map((directory) => directory.id), filter(this.isDirectoryPresent))).subscribe(this.list.get);
715
- }
716
- ngOnDestroy() {
717
- if (this.subscription) {
718
- this.subscription.unsubscribe();
719
- }
720
- }
721
- openFolder(record) {
722
- this.navigator.goToFolder({ id: record.id, name: record.name });
723
- }
724
- renameFolder(record) {
725
- this.openRenameModal(record);
726
- }
727
- deleteFolder(record) {
728
- this.deleteService.deleteFolder(record).subscribe();
729
- }
730
- downloadFile(record) {
731
- this.downloadService.downloadFile(record).subscribe();
732
- }
733
- renameFile(record) {
734
- this.openRenameModal(record);
735
- }
736
- deleteFile(record) {
737
- this.deleteService.deleteFile(record).subscribe();
738
- }
739
- moveFile(record) {
740
- this.fileToMove = record;
741
- this.moveModalOpen = true;
742
- }
743
- moveFolder(record) {
744
- this.fileToMove = record;
745
- this.parentOfFileToMove = this.navigator.getCurrentFolderId();
746
- this.moveModalOpen = true;
747
- }
748
- onContentSaved() {
749
- delete this.contentToRename;
750
- delete this.fileToMove;
751
- delete this.parentOfFileToMove;
752
- }
753
- openRenameModal(withContent) {
754
- this.renameModalOpen = true;
755
- this.contentToRename = withContent;
756
- }
757
- }
758
- FileManagementFolderContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementFolderContentComponent, deps: [{ token: i1.ListService }, { token: i1$2.DirectoryDescriptorService }, { token: DeleteService }, { token: DownloadService }, { token: NavigatorService }, { token: UpdateStreamService }], target: i0.ɵɵFactoryTarget.Component });
759
- FileManagementFolderContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementFolderContentComponent, selector: "abp-file-management-folder-content", outputs: { contentUpdate: "contentUpdate" }, providers: [
760
- {
761
- provide: EXTENSIONS_IDENTIFIER,
762
- useValue: "FileManagement.FolderContentComponent" /* FolderContent */,
763
- },
764
- ], ngImport: i0, template: "<ng-container *ngIf=\"content$ | async; let data\">\r\n <abp-extensible-table\r\n [list]=\"list\"\r\n [data]=\"data\"\r\n [recordsTotal]=\"data.length\"\r\n >\r\n </abp-extensible-table>\r\n\r\n <abp-rename-modal\r\n [(visible)]=\"renameModalOpen\"\r\n [(contentToRename)]=\"contentToRename\"\r\n (contentSaved)=\"onContentSaved()\"\r\n ></abp-rename-modal>\r\n\r\n <abp-move-file-modal\r\n [(visible)]=\"moveModalOpen\"\r\n (contentSaved)=\"onContentSaved()\"\r\n [fileToMove]=\"fileToMove\"\r\n [oldParentId]=\"parentOfFileToMove\"\r\n ></abp-move-file-modal>\r\n</ng-container>\r\n", components: [{ type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: RenameModalComponent, selector: "abp-rename-modal", inputs: ["contentToRename"], outputs: ["contentToRenameChange"] }, { type: MoveFileModalComponent, selector: "abp-move-file-modal", inputs: ["fileToMove", "oldParentId"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i10.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
765
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementFolderContentComponent, decorators: [{
766
- type: Component,
767
- args: [{
768
- selector: 'abp-file-management-folder-content',
769
- templateUrl: './file-management-folder-content.component.html',
770
- providers: [
771
- {
772
- provide: EXTENSIONS_IDENTIFIER,
773
- useValue: "FileManagement.FolderContentComponent" /* FolderContent */,
774
- },
775
- ],
776
- changeDetection: ChangeDetectionStrategy.OnPush,
777
- }]
778
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i1$2.DirectoryDescriptorService }, { type: DeleteService }, { type: DownloadService }, { type: NavigatorService }, { type: UpdateStreamService }]; }, propDecorators: { contentUpdate: [{
779
- type: Output
780
- }] } });
781
-
782
- function isDirectory(data) {
783
- return data.record.isDirectory;
784
- }
785
- function isFile(data) {
786
- return !isDirectory(data);
787
- }
788
- const DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_ACTIONS = EntityAction.createMany([
789
- /* DIRECTORY ACTIONS */
790
- {
791
- text: 'FileManagement::Open',
792
- action: (data) => {
793
- const component = data.getInjected(FileManagementFolderContentComponent);
794
- component.openFolder(data.record);
795
- },
796
- visible: isDirectory,
797
- },
798
- {
799
- text: 'FileManagement::Rename',
800
- action: (data) => {
801
- const component = data.getInjected(FileManagementFolderContentComponent);
802
- component.renameFolder(data.record);
803
- },
804
- permission: "FileManagement.DirectoryDescriptor.Update" /* DirectoryDescriptorUpdate */,
805
- visible: isDirectory,
806
- },
807
- {
808
- text: 'FileManagement::Move',
809
- action: (data) => {
810
- const component = data.getInjected(FileManagementFolderContentComponent);
811
- component.moveFolder(data.record);
812
- },
813
- permission: "FileManagement.DirectoryDescriptor.Update" /* DirectoryDescriptorUpdate */,
814
- visible: isDirectory,
815
- },
816
- {
817
- text: 'AbpUi::Delete',
818
- action: (data) => {
819
- const component = data.getInjected(FileManagementFolderContentComponent);
820
- component.deleteFolder(data.record);
821
- },
822
- permission: "FileManagement.DirectoryDescriptor.Delete" /* DirectoryDescriptorDelete */,
823
- visible: isDirectory,
824
- },
825
- /* !DIRECTORY ACTIONS */
826
- /* FILE ACTIONS */
827
- {
828
- text: 'FileManagement::Download',
829
- action: (data) => {
830
- const component = data.getInjected(FileManagementFolderContentComponent);
831
- component.downloadFile(data.record);
832
- },
833
- visible: isFile,
834
- },
835
- {
836
- text: 'FileManagement::Rename',
837
- action: (data) => {
838
- const component = data.getInjected(FileManagementFolderContentComponent);
839
- component.renameFile(data.record);
840
- },
841
- permission: "FileManagement.FileDescriptor.Update" /* FileDescriptorUpdate */,
842
- visible: isFile,
843
- },
844
- {
845
- text: 'FileManagement::Move',
846
- action: (data) => {
847
- const component = data.getInjected(FileManagementFolderContentComponent);
848
- component.moveFile(data.record);
849
- },
850
- permission: "FileManagement.FileDescriptor.Update" /* FileDescriptorUpdate */,
851
- visible: isFile,
852
- },
853
- {
854
- text: 'AbpUi::Delete',
855
- action: (data) => {
856
- const component = data.getInjected(FileManagementFolderContentComponent);
857
- component.deleteFile(data.record);
858
- },
859
- permission: "FileManagement.FileDescriptor.Delete" /* FileDescriptorDelete */,
860
- visible: isFile,
861
- },
862
- ]);
863
-
864
- function transformDirectoryContentSize(directoryContent) {
865
- return directoryContent.isDirectory ? '' : formatBytes(directoryContent.size);
866
- }
867
- function formatBytes(size, precision = 2) {
868
- if (!Number.isInteger(size) || size <= 0) {
869
- return '0 Bytes';
870
- }
871
- if (size === 1) {
872
- return '1 Byte';
873
- }
874
- const factor = 1024;
875
- const decimals = precision < 0 ? 0 : precision;
876
- const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
877
- const sizeIndex = Math.floor(Math.log(size) / Math.log(factor));
878
- return (parseFloat((size / Math.pow(factor, sizeIndex)).toFixed(decimals)) +
879
- ' ' +
880
- sizes[sizeIndex]);
881
- }
882
-
883
- const DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_PROPS = EntityProp.createMany([
884
- {
885
- type: "string" /* String */,
886
- name: 'name',
887
- displayName: 'FileManagement::Name',
888
- sortable: true,
889
- action: (data) => {
890
- const navigator = data.getInjected(NavigatorService);
891
- const download = data.getInjected(DownloadService);
892
- if (data.record.isDirectory) {
893
- navigator.goToFolder(data.record);
894
- }
895
- else {
896
- download.downloadFile(data.record).subscribe();
897
- }
898
- },
899
- valueResolver: (data) => {
900
- const record = data.record;
901
- let iconTemplate;
902
- if (record.isDirectory) {
903
- iconTemplate = `<i class="fa fa-folder text-primary" aria-hidden="true"></i>`;
904
- }
905
- else if (record.iconInfo) {
906
- if (record.iconInfo.type === 0) {
907
- iconTemplate = `<i class="${data.record.iconInfo.icon}" aria-hidden="true"></i>`;
908
- }
909
- else {
910
- iconTemplate = `<img src="${data.record.iconInfo.icon}" />`;
911
- }
912
- }
913
- return of(`${iconTemplate} ${data.record.name}`);
914
- },
915
- },
916
- {
917
- type: "string" /* String */,
918
- name: 'size',
919
- displayName: 'FileManagement::Size',
920
- sortable: true,
921
- columnWidth: 150,
922
- valueResolver: (data) => of(transformDirectoryContentSize(data.record)),
923
- },
924
- ]);
925
-
926
- const DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_TOOLBAR_ACTIONS = ToolbarAction.createMany([]);
927
-
928
- const DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS = {
929
- ["FileManagement.FolderContentComponent" /* FolderContent */]: DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_ACTIONS,
930
- };
931
- const DEFAULT_FILE_MANAGEMENT_TOOLBAR_ACTIONS = {
932
- ["FileManagement.FolderContentComponent" /* FolderContent */]: DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_TOOLBAR_ACTIONS,
933
- };
934
- const DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS = {
935
- ["FileManagement.FolderContentComponent" /* FolderContent */]: DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_PROPS,
936
- };
937
- const FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS');
938
- const FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS');
939
- const FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS');
940
- const FILE_MANAGEMENT_XSRF_HEADER_NAME = new InjectionToken('FILE_MANAGEMENT_XSRF_HEADER_NAME');
941
-
942
- /* tslint:disable:no-string-literal */
943
- class UploadService {
944
- constructor(localization, fileService, confirmation, updateStream, apiInterceptor, environmentService, httpXsrfToken, headerName) {
945
- this.localization = localization;
946
- this.fileService = fileService;
947
- this.confirmation = confirmation;
948
- this.updateStream = updateStream;
949
- this.apiInterceptor = apiInterceptor;
950
- this.environmentService = environmentService;
951
- this.httpXsrfToken = httpXsrfToken;
952
- this.headerName = headerName;
953
- this.filesAlreadyChecked = false;
954
- this.subscriptions = [];
955
- this.onBeforeUpload = (files) => {
956
- if (this.filesAlreadyChecked) {
957
- return true;
958
- }
959
- this.checkFilesForUpload(files);
960
- return false;
961
- };
962
- this.cancelModal = () => {
963
- this.uppy.cancelAll();
964
- const dashboard = this.uppy.getPlugin('Dashboard');
965
- if (dashboard.isModalOpen()) {
966
- dashboard.closeModal();
967
- }
968
- };
969
- this.getPreInfo = (files) => {
970
- this.callPreInfoWithFiles(files)
971
- .pipe(filter((result) => result.length > 0), map(this.findAnyIfExistOrInvalidName))
972
- .subscribe((result) => {
973
- if (result.doesExist) {
974
- this.giveExistFileWarning();
975
- }
976
- if (result.hasInvalidName) {
977
- this.giveInvalidFileNameWarning(result.fileName);
978
- }
979
- });
980
- };
981
- }
982
- ngOnDestroy() {
983
- if (this.subscriptions) {
984
- this.subscriptions.forEach((s) => s.unsubscribe());
985
- }
986
- }
987
- initUppy({ trigger }) {
988
- const headers = this.apiInterceptor.getAdditionalHeaders();
989
- headers[this.headerName] = this.httpXsrfToken.getToken();
990
- this.subscriptions.push(this.localization
991
- .getResource$('FileManagement')
992
- .pipe(take(1))
993
- .subscribe((resource) => {
994
- this.resource = resource;
995
- this.uppy = new Uppy({
996
- onBeforeUpload: this.onBeforeUpload,
997
- })
998
- .use(Dashboard, {
999
- trigger,
1000
- inline: false,
1001
- target: 'body',
1002
- metaFields: [
1003
- {
1004
- id: 'name',
1005
- name: resource['Name'],
1006
- placeholder: resource['FileName'],
1007
- },
1008
- ],
1009
- browserBackButtonClose: true,
1010
- proudlyDisplayPoweredByUppy: false,
1011
- onRequestCloseModal: this.cancelModal,
1012
- locale: {
1013
- strings: this.getTranslations(),
1014
- },
1015
- })
1016
- .use(XHRUpload, {
1017
- endpoint: this.getRawApiUrl(),
1018
- formData: true,
1019
- fieldName: 'file',
1020
- headers,
1021
- });
1022
- }));
1023
- this.subscriptions.push(fromEvent(this.uppy, 'file-added')
1024
- .pipe(map((files) => files[0]), bufferTime(500), filter((args) => args.length > 0))
1025
- .subscribe(this.getPreInfo));
1026
- this.subscriptions.push(fromEvent(this.uppy, 'complete').subscribe((_) => {
1027
- this.cancelModal();
1028
- this.updateStream.refreshContent();
1029
- }));
1030
- return this.subscriptions;
1031
- }
1032
- giveInvalidFileNameWarning(fileName) {
1033
- this.uppy.info(this.resource['FileManagement:0002'].replace('{FileName}', fileName), 'error', 7000);
1034
- }
1035
- giveExistFileWarning() {
1036
- this.uppy.info(this.resource['FilesAlreadyExist'], 'warning', 7000);
1037
- }
1038
- checkFilesForUpload(files) {
1039
- this.callPreInfoWithFiles(Object.values(files)).subscribe((result) => {
1040
- const filesWithInvalidNames = result.filter((f) => !f.hasValidName);
1041
- if (filesWithInvalidNames.length) {
1042
- const messageParam = filesWithInvalidNames
1043
- .map((f) => `'${f.fileName}'`)
1044
- .join(', ');
1045
- this.confirmation.error('FileManagement::NotValidFileNames', '', {
1046
- messageLocalizationParams: [messageParam],
1047
- hideCancelBtn: true,
1048
- yesText: 'AbpUi::Ok',
1049
- });
1050
- }
1051
- else {
1052
- const filesAlreadyExist = result.filter((f) => f.doesExist);
1053
- if (filesAlreadyExist.length) {
1054
- const messageParam = filesAlreadyExist
1055
- .map((f) => `'${f.fileName}'`)
1056
- .join(', ');
1057
- this.confirmation
1058
- .warn('FileManagement::FilesWillBeOverrided', 'FileManagement::AreYouSure', {
1059
- messageLocalizationParams: [messageParam],
1060
- })
1061
- .pipe(take(1), filter((status) => status === Confirmation.Status.confirm))
1062
- .subscribe((_) => this.callUppyUpload());
1063
- }
1064
- else {
1065
- this.callUppyUpload();
1066
- }
1067
- }
1068
- });
1069
- }
1070
- callUppyUpload() {
1071
- this.filesAlreadyChecked = true;
1072
- this.updateXHREndpoint();
1073
- this.uppy.upload();
1074
- this.filesAlreadyChecked = false;
1075
- }
1076
- updateXHREndpoint() {
1077
- const directoryId = this.updateStream.currentDirectory;
1078
- const xhr = this.uppy.getPlugin('XHRUpload');
1079
- if (directoryId) {
1080
- xhr.setOptions({
1081
- endpoint: this.getRawApiUrl() + '?directoryId=' + directoryId,
1082
- });
1083
- }
1084
- else {
1085
- xhr.setOptions({ endpoint: this.getRawApiUrl() });
1086
- }
1087
- }
1088
- getRawApiUrl() {
1089
- return (this.environmentService.getApiUrl('FileManagement') +
1090
- `/api/file-management/file-descriptor/upload`);
1091
- }
1092
- callPreInfoWithFiles(files) {
1093
- const currentId = this.updateStream.currentDirectory;
1094
- return this.fileService.getPreInfo(files.map((f) => ({
1095
- fileName: f.meta.name,
1096
- size: f.size,
1097
- directoryId: currentId,
1098
- })));
1099
- }
1100
- findAnyIfExistOrInvalidName(result) {
1101
- return result.reduce((cumul, curr) => ({
1102
- doesExist: cumul.doesExist || curr.doesExist,
1103
- hasInvalidName: cumul.hasInvalidName || !curr.hasValidName,
1104
- fileName: curr.hasValidName ? cumul.fileName : curr.fileName,
1105
- }), {
1106
- doesExist: false,
1107
- hasInvalidName: false,
1108
- fileName: '',
1109
- });
1110
- }
1111
- getTranslations() {
1112
- return {
1113
- closeModal: this.resource['CloseModal'],
1114
- addMoreFiles: this.resource['AddMoreFiles'],
1115
- addingMoreFiles: this.resource['AddingMoreFiles'],
1116
- importFrom: this.resource['ImportFrom'],
1117
- dashboardWindowTitle: this.resource['DashboardWindowTitle'],
1118
- dashboardTitle: this.resource['DashboardTitle'],
1119
- copyLinkToClipboardSuccess: this.resource['CopyLinkToClipboardSuccess'],
1120
- copyLinkToClipboardFallback: this.resource['CopyLinkToClipboardFallback'],
1121
- copyLink: this.resource['CopyLink'],
1122
- fileSource: this.resource['FileSource'],
1123
- done: this.resource['Done'],
1124
- back: this.resource['Back'],
1125
- removeFile: this.resource['RemoveFile'],
1126
- editFile: this.resource['EditFile'],
1127
- editing: this.resource['Editing'],
1128
- edit: this.resource['Edit'],
1129
- finishEditingFile: this.resource['FinishEditingFile'],
1130
- saveChanges: this.resource['SaveChanges'],
1131
- myDevice: this.resource['MyDevice'],
1132
- dropPasteImport: this.resource['DropPasteImport'],
1133
- dropPaste: this.resource['DropPaste'],
1134
- dropHint: this.resource['DropHint'],
1135
- browse: this.resource['Browse'],
1136
- uploadComplete: this.resource['UploadComplete'],
1137
- uploadPaused: this.resource['UploadPaused'],
1138
- resumeUpload: this.resource['ResumeUpload'],
1139
- pauseUpload: this.resource['PauseUpload'],
1140
- retryUpload: this.resource['RetryUpload'],
1141
- cancelUpload: this.resource['CancelUpload'],
1142
- xFilesSelected: {
1143
- 0: this.resource['FileSelected'],
1144
- 1: this.resource['NFileSelected'],
1145
- },
1146
- uploadingXFiles: {
1147
- 0: this.resource['UploadingFile'],
1148
- 1: this.resource['NUploadingFile'],
1149
- },
1150
- processingXFiles: {
1151
- 0: this.resource['ProcessingFile'],
1152
- 1: this.resource['NProcessingFile'],
1153
- },
1154
- uploading: this.resource['Uploading'],
1155
- complete: this.resource['Complete'],
1156
- uploadFailed: this.resource['UploadFailed'],
1157
- paused: this.resource['Paused'],
1158
- retry: this.resource['Retry'],
1159
- cancel: this.resource['Cancel'],
1160
- filesUploadedOfTotal: {
1161
- 0: this.resource['FileUploadedOfTotal'],
1162
- 1: this.resource['NFileUploadedOfTotal'],
1163
- },
1164
- dataUploadedOfTotal: this.resource['DataUploadedOfTotal'],
1165
- xTimeLeft: this.resource['XTimeLeft'],
1166
- uploadXFiles: {
1167
- 0: this.resource['UploadFile'],
1168
- 1: this.resource['UploadXFiles'],
1169
- },
1170
- uploadXNewFiles: {
1171
- 0: this.resource['UploadNewFile'],
1172
- 1: this.resource['UploadXNewFile'],
1173
- },
1174
- };
1175
- }
1176
- }
1177
- UploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UploadService, deps: [{ token: i1.LocalizationService }, { token: i1$2.FileDescriptorService }, { token: i1$1.ConfirmationService }, { token: UpdateStreamService }, { token: i1.ApiInterceptor }, { token: i1.EnvironmentService }, { token: i5.HttpXsrfTokenExtractor }, { token: FILE_MANAGEMENT_XSRF_HEADER_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
1178
- UploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UploadService });
1179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UploadService, decorators: [{
1180
- type: Injectable
1181
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i1$2.FileDescriptorService }, { type: i1$1.ConfirmationService }, { type: UpdateStreamService }, { type: i1.ApiInterceptor }, { type: i1.EnvironmentService }, { type: i5.HttpXsrfTokenExtractor }, { type: undefined, decorators: [{
1182
- type: Inject,
1183
- args: [FILE_MANAGEMENT_XSRF_HEADER_NAME]
1184
- }] }]; } });
1185
-
1186
- class CreateFolderModalService {
1187
- constructor(service, updateStream) {
1188
- this.service = service;
1189
- this.updateStream = updateStream;
1190
- }
1191
- create(name, parent) {
1192
- const parentId = mapRootIdToEmpty(parent || this.updateStream.currentDirectory);
1193
- return this.service
1194
- .create({ name, parentId: mapRootIdToEmpty(parentId) })
1195
- .pipe(tap((_) => this.updateStream.patchStore({ createdDirectory: parentId })));
1196
- }
1197
- }
1198
- CreateFolderModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: CreateFolderModalService, deps: [{ token: i1$2.DirectoryDescriptorService }, { token: UpdateStreamService }], target: i0.ɵɵFactoryTarget.Injectable });
1199
- CreateFolderModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: CreateFolderModalService });
1200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: CreateFolderModalService, decorators: [{
1201
- type: Injectable
1202
- }], ctorParameters: function () { return [{ type: i1$2.DirectoryDescriptorService }, { type: UpdateStreamService }]; } });
1203
-
1204
- class CreateFolderModalComponent extends BaseModalComponent {
1205
- constructor(fb, service) {
1206
- super();
1207
- this.fb = fb;
1208
- this.service = service;
1209
- this.form = this.fb.group({
1210
- name: ['', Validators.required],
1211
- });
1212
- }
1213
- shouldSave() {
1214
- return this.form.valid;
1215
- }
1216
- saveAction() {
1217
- return this.service.create(this.form.controls.name.value, this.parentId);
1218
- }
1219
- clear() {
1220
- this.form.reset();
1221
- }
1222
- }
1223
- CreateFolderModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: CreateFolderModalComponent, deps: [{ token: i2.FormBuilder }, { token: CreateFolderModalService }], target: i0.ɵɵFactoryTarget.Component });
1224
- CreateFolderModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: CreateFolderModalComponent, selector: "abp-create-folder-modal", inputs: { parentId: "parentId" }, providers: [CreateFolderModalService], usesInheritance: true, ngImport: i0, template: "<abp-file-management-modal title=\"CreateFolder\" [parent]=\"self\">\r\n <form [formGroup]=\"form\" (keyup.enter)=\"save()\">\r\n <div class=\"form-group\">\r\n <label for=\"createFolderInput\"\r\n >{{ \"FileManagement::Name\" | abpLocalization }} *</label\r\n >\r\n <input\r\n formControlName=\"name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"createFolderInput\"\r\n />\r\n </div>\r\n </form>\r\n</abp-file-management-modal>\r\n", components: [{ type: BaseModalComponent, selector: "abp-file-management-modal", inputs: ["title", "size", "visible", "parent"], outputs: ["visibleChange", "contentSaved"] }], directives: [{ type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: CreateFolderModalComponent, decorators: [{
1226
- type: Component,
1227
- args: [{
1228
- selector: 'abp-create-folder-modal',
1229
- templateUrl: './create-folder-modal.component.html',
1230
- changeDetection: ChangeDetectionStrategy.OnPush,
1231
- providers: [CreateFolderModalService],
1232
- }]
1233
- }], ctorParameters: function () { return [{ type: i2.FormBuilder }, { type: CreateFolderModalService }]; }, propDecorators: { parentId: [{
1234
- type: Input
1235
- }] } });
1236
-
1237
- class FileManagementButtonsComponent {
1238
- constructor(uploadService) {
1239
- this.uploadService = uploadService;
1240
- this.folderCreateModal = false;
1241
- this.fileCreatePermission = "FileManagement.FileDescriptor.Create" /* FileDescriptorCreate */;
1242
- this.directoryCreatePermission = "FileManagement.DirectoryDescriptor.Create" /* DirectoryDescriptorCreate */;
1243
- this.buttonId = 'upload-files-btn';
1244
- }
1245
- ngAfterViewInit() {
1246
- // TODO: do not initialize service and load uppy.io if the user does not have the required permission
1247
- this.uploadService.initUppy({ trigger: `#${this.buttonId}` });
1248
- }
1249
- }
1250
- FileManagementButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementButtonsComponent, deps: [{ token: UploadService }], target: i0.ɵɵFactoryTarget.Component });
1251
- FileManagementButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementButtonsComponent, selector: "abp-file-management-buttons", ngImport: i0, template: "<abp-button\r\n class=\"d-grid\"\r\n *abpPermission=\"fileCreatePermission\"\r\n [buttonId]=\"buttonId\"\r\n iconClass=\"fa fa-upload me-2\"\r\n buttonClass=\"btn btn-primary mb-2\"\r\n >{{ \"FileManagement::UploadFiles\" | abpLocalization }}</abp-button\r\n>\r\n\r\n<abp-button\r\n class=\"d-grid\"\r\n *abpPermission=\"directoryCreatePermission\"\r\n iconClass=\"fa fa-folder-plus me-2\"\r\n buttonClass=\"btn btn-light btn-outline-primary mb-4\"\r\n (click)=\"folderCreateModal = true\"\r\n >{{ \"FileManagement::CreateFolder\" | abpLocalization }}</abp-button\r\n>\r\n\r\n<abp-create-folder-modal\r\n [(visible)]=\"folderCreateModal\"\r\n></abp-create-folder-modal>\r\n", styles: [".uppy-Root{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;position:relative;color:#333}.uppy-Root[dir=rtl],[dir=rtl] .uppy-Root{text-align:right}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.uppy-u-reset{-webkit-appearance:none;line-height:1;padding:0;color:inherit;-webkit-backface-visibility:visible;backface-visibility:visible;background:none;border:none;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;box-shadow:none;clear:none;cursor:auto;display:inline;empty-cells:show;float:none;font-family:inherit;font-size:inherit;font-style:normal;font-feature-settings:normal;font-variant:normal;font-weight:400;font-stretch:normal;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;z-index:auto}[dir=rtl] .uppy-u-reset{text-align:right}.uppy-c-textInput{border:1px solid #ddd;border-radius:4px;font-size:14px;line-height:1.5;padding:6px 8px;background-color:#fff}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:#2275d799;outline:none;box-shadow:0 0 0 3px #2275d726}[data-uppy-theme=dark] .uppy-c-textInput{background-color:#333;border-color:#333;color:#eaeaea}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#525252;box-shadow:none}.uppy-c-icon{max-width:100%;max-height:100%;fill:currentColor;display:inline-block;overflow:hidden}.uppy-c-btn{display:inline-block;white-space:nowrap;vertical-align:middle;font-family:inherit;font-size:16px;line-height:1;font-weight:500;transition-property:background-color,color;transition-duration:.3s;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.uppy-c-btn,[dir=rtl] .uppy-c-btn{text-align:center}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{font-size:14px;padding:10px 18px;border-radius:4px;background-color:#2275d7;color:#fff}.uppy-c-btn-primary:hover{background-color:#1b5dab}.uppy-c-btn-primary:focus{outline:none;box-shadow:0 0 0 3px #2275d766}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-primary::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-c-btn-link{font-size:14px;line-height:1;padding:10px 15px;border-radius:4px;background-color:transparent;color:#525252}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{outline:none;box-shadow:0 0 0 3px #2275d740}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-link::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-link:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}.uppy-c-btn--small{font-size:.9em;padding:7px 16px;border-radius:2px}.uppy-size--md .uppy-c-btn--small{padding:8px 10px;border-radius:2px}\n", "@charset \"UTF-8\";.uppy-Informer{position:absolute;bottom:60px;left:0;right:0;text-align:center;opacity:1;transform:none;transition:all .25s ease-in;z-index:1005}.uppy-Informer[aria-hidden=true]{opacity:0;transform:translateY(350%);transition:all .3s ease-in;z-index:-1000}.uppy-Informer p{display:inline-block;margin:0;font-size:12px;line-height:1.4;font-weight:400;padding:6px 15px;background-color:#757575;color:#fff;border-radius:18px;max-width:90%}.uppy-size--md .uppy-Informer p{font-size:14px;line-height:1.3;max-width:500px;padding:10px 20px}[data-uppy-theme=dark] .uppy-Informer p{background-color:#333}[dir=ltr] .uppy-Informer span{left:3px}[dir=rtl] .uppy-Informer span{right:3px}[dir=ltr] .uppy-Informer span{margin-left:-1px}[dir=rtl] .uppy-Informer span{margin-right:-1px}.uppy-Informer span{line-height:12px;width:13px;height:13px;display:inline-block;vertical-align:middle;color:#525252;background-color:#fff;border-radius:50%;position:relative;top:-1px;font-size:10px;-webkit-margin-start:-1px}.uppy-Informer span:hover{cursor:help}.uppy-Informer span:after{line-height:1.3;word-wrap:break-word}.uppy-Root [aria-label][role~=tooltip]{position:relative}.uppy-Root [aria-label][role~=tooltip]:after,.uppy-Root [aria-label][role~=tooltip]:before{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;transition:all .18s ease-in-out 0s;transition:all var(--microtip-transition-duration,.18s) var(--microtip-transition-easing,ease-in-out) var(--microtip-transition-delay,0s);position:absolute;box-sizing:border-box;z-index:10;transform-origin:top}.uppy-Root [aria-label][role~=tooltip]:before{background-size:100% auto!important;content:\"\"}.uppy-Root [aria-label][role~=tooltip]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(aria-label);font-size:13px;font-size:var(--microtip-font-size,13px);font-weight:normal;font-weight:var(--microtip-font-weight,normal);text-transform:none;text-transform:var(--microtip-text-transform,none);padding:.5em 1em;white-space:nowrap;box-sizing:content-box}.uppy-Root [aria-label][role~=tooltip]:focus:after,.uppy-Root [aria-label][role~=tooltip]:focus:before,.uppy-Root [aria-label][role~=tooltip]:hover:after,.uppy-Root [aria-label][role~=tooltip]:hover:before{opacity:1;pointer-events:auto}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002C14.285 12.002 8.594 0 2.658 0z'/%3E%3C/svg%3E\") no-repeat;height:6px;width:18px;margin-bottom:5px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{margin-bottom:11px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{transform:translate(-50%);bottom:100%;left:50%}.uppy-Root [role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate(-50%,-5px)}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{transform:translate(-50%);bottom:100%;left:50%}.uppy-Root [role~=tooltip][data-microtip-position=top]:hover:after{transform:translate(-50%,-5px)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:after{transform:translate(calc(-100% + 16px));bottom:100%}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate(calc(-100% + 16px),-5px)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:after{transform:translate(-16px);bottom:100%}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate(-16px,-5px)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M33.342 12H1.338c6 0 11.627-12.002 16.002-12.002C21.715-.002 27.406 12 33.342 12z'/%3E%3C/svg%3E\") no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{margin-top:11px}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{transform:translate(-50%,-10px);bottom:auto;left:50%;top:100%}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate(-50%)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{transform:translate(-50%,-10px);top:100%;left:50%}.uppy-Root [role~=tooltip][data-microtip-position=bottom]:hover:after{transform:translate(-50%)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:after{transform:translate(calc(-100% + 16px),-10px);top:100%}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate(calc(-100% + 16px))}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:after{transform:translate(-16px,-10px);top:100%}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate(-16px)}.uppy-Root [role~=tooltip][data-microtip-position=left]:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:before{bottom:auto;left:auto;right:100%;top:50%;transform:translate(10px,-50%)}.uppy-Root [role~=tooltip][data-microtip-position=left]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M0 33.342V1.338c0 6 12.002 11.627 12.002 16.002C12.002 21.715 0 27.406 0 33.342z'/%3E%3C/svg%3E\") no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0}.uppy-Root [role~=tooltip][data-microtip-position=left]:after{margin-right:11px}.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:before{transform:translateY(-50%)}.uppy-Root [role~=tooltip][data-microtip-position=right]:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:before{bottom:auto;left:100%;top:50%;transform:translate(-10px,-50%)}.uppy-Root [role~=tooltip][data-microtip-position=right]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M12 2.658v32.004c0-6-12.002-11.627-12.002-16.002C-.002 14.285 12 8.594 12 2.658z'/%3E%3C/svg%3E\") no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px}.uppy-Root [role~=tooltip][data-microtip-position=right]:after{margin-left:11px}.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:before{transform:translateY(-50%)}.uppy-Root [role~=tooltip][data-microtip-size=small]:after{white-space:normal;width:80px}.uppy-Root [role~=tooltip][data-microtip-size=medium]:after{white-space:normal;width:150px}.uppy-Root [role~=tooltip][data-microtip-size=large]:after{white-space:normal;width:260px}.uppy-StatusBar{display:flex;position:relative;height:40px;line-height:40px;font-size:12px;font-weight:400;color:#fff;background-color:#fff;z-index:1001;transition:height .2s}.uppy-size--md .uppy-StatusBar{height:46px}[data-uppy-theme=dark] .uppy-StatusBar{background-color:#1f1f1f}.uppy-StatusBar:before{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:2px;background-color:#eaeaea}[data-uppy-theme=dark] .uppy-StatusBar:before{background-color:#757575}.uppy-StatusBar[aria-hidden=true]{overflow-y:hidden;height:0}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-progress{background-color:#e32437}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-statusIndicator{color:#e32437}.uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#fff;height:65px;border-top:1px solid #eaeaea}[data-uppy-theme=dark] .uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#1f1f1f;border-top:1px solid #333}.uppy-StatusBar-progress{background-color:#2275d7;height:2px;position:absolute;z-index:1001;transition:background-color,width .3s ease-out}.uppy-StatusBar-progress.is-indeterminate{background-size:64px 64px;background-image:linear-gradient(45deg,rgba(0,0,0,.3) 25%,transparent 0,transparent 50%,rgba(0,0,0,.3) 0,rgba(0,0,0,.3) 75%,transparent 0,transparent);-webkit-animation:uppy-StatusBar-ProgressStripes 1s linear infinite;animation:uppy-StatusBar-ProgressStripes 1s linear infinite}@-webkit-keyframes uppy-StatusBar-ProgressStripes{0%{background-position:0 0}to{background-position:64px 0}}@keyframes uppy-StatusBar-ProgressStripes{0%{background-position:0 0}to{background-position:64px 0}}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-progress,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-progress{background-color:#f6a623}.uppy-StatusBar.is-waiting .uppy-StatusBar-progress{display:none}[dir=ltr] .uppy-StatusBar-content{padding-left:10px}[dir=rtl] .uppy-StatusBar-content{padding-right:10px}.uppy-StatusBar-content{display:flex;align-items:center;position:relative;z-index:1002;-webkit-padding-start:10px;white-space:nowrap;text-overflow:ellipsis;color:#333;height:100%}[dir=ltr] .uppy-size--md .uppy-StatusBar-content{padding-left:15px}[dir=rtl] .uppy-size--md .uppy-StatusBar-content{padding-right:15px}.uppy-size--md .uppy-StatusBar-content{-webkit-padding-start:15px}[data-uppy-theme=dark] .uppy-StatusBar-content{color:#eaeaea}[dir=ltr] .uppy-StatusBar-status{padding-right:.3em}[dir=rtl] .uppy-StatusBar-status{padding-left:.3em}.uppy-StatusBar-status{line-height:1.4;font-weight:400;display:flex;flex-direction:column;justify-content:center;-webkit-padding-end:.3em}.uppy-StatusBar-statusPrimary{font-weight:500;line-height:1}[data-uppy-theme=dark] .uppy-StatusBar-statusPrimary{color:#eaeaea}.uppy-StatusBar-statusSecondary{margin-top:1px;font-size:11px;line-height:1.2;display:inline-block;color:#757575;white-space:nowrap}[data-uppy-theme=dark] .uppy-StatusBar-statusSecondary{color:#bbb}[dir=ltr] .uppy-StatusBar-statusSecondaryHint{margin-right:5px}[dir=rtl] .uppy-StatusBar-statusSecondaryHint{margin-left:5px}.uppy-StatusBar-statusSecondaryHint{display:inline-block;vertical-align:middle;-webkit-margin-end:5px;line-height:1}[dir=ltr] .uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-right:8px}[dir=rtl] .uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-left:8px}.uppy-size--md .uppy-StatusBar-statusSecondaryHint{-webkit-margin-end:8px}[dir=ltr] .uppy-StatusBar-statusIndicator{margin-right:7px}[dir=rtl] .uppy-StatusBar-statusIndicator{margin-left:7px}.uppy-StatusBar-statusIndicator{position:relative;top:1px;color:#525252;-webkit-margin-end:7px}.uppy-StatusBar-statusIndicator svg{vertical-align:text-bottom}[dir=ltr] .uppy-StatusBar-actions{right:10px}[dir=rtl] .uppy-StatusBar-actions{left:10px}.uppy-StatusBar-actions{display:flex;align-items:center;position:absolute;top:0;bottom:0;z-index:1004}.uppy-StatusBar.is-waiting .uppy-StatusBar-actions{width:100%;height:100%;position:static;padding:0 15px;background-color:#fafafa}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#1f1f1f}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{height:90px;flex-direction:column}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{height:65px;flex-direction:row}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:column;justify-content:center}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:row;justify-content:normal}.uppy-StatusBar-actionCircleBtn{line-height:1;cursor:pointer;margin:3px;opacity:.9}.uppy-StatusBar-actionCircleBtn:focus{outline:none}.uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}.uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 3px #2275d780}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionCircleBtn:hover{opacity:1}.uppy-StatusBar-actionCircleBtn:focus{border-radius:50%}.uppy-StatusBar-actionCircleBtn svg{vertical-align:bottom}.uppy-StatusBar-actionBtn{display:inline-block;vertical-align:middle;font-size:10px;line-height:inherit;color:#2275d7}.uppy-size--md .uppy-StatusBar-actionBtn{font-size:11px}.uppy-StatusBar-actionBtn--disabled{opacity:.4}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--disabled{opacity:.7}[dir=ltr] .uppy-StatusBar-actionBtn--retry{margin-right:6px}[dir=rtl] .uppy-StatusBar-actionBtn--retry{margin-left:6px}.uppy-StatusBar-actionBtn--retry{height:16px;border-radius:8px;-webkit-margin-end:6px;background-color:#ff4b23;line-height:1;color:#fff;padding:1px 6px 3px 18px;position:relative}.uppy-StatusBar-actionBtn--retry:focus{outline:none}.uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 3px #2275d780}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionBtn--retry:hover{background-color:#f92d00}[dir=ltr] .uppy-StatusBar-actionBtn--retry svg{left:6px}[dir=rtl] .uppy-StatusBar-actionBtn--retry svg{right:6px}.uppy-StatusBar-actionBtn--retry svg{position:absolute;top:3px}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{font-size:14px;width:100%;padding:15px 10px;color:#fff;background-color:#1bb240;line-height:1}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#189c38}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1c8b37}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#18762f}.uppy-size--md .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{padding:13px 22px;width:auto}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{cursor:not-allowed;background-color:#1bb240}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1c8b37}.uppy-StatusBar:not(.is-waiting) .uppy-StatusBar-actionBtn--upload{background-color:transparent;color:#2275d7}[dir=ltr] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px}[dir=ltr] .uppy-StatusBar-actionBtn--uploadNewlyAdded,[dir=rtl] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-left:3px}[dir=rtl] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px}.uppy-StatusBar-actionBtn--uploadNewlyAdded{-webkit-padding-end:3px;-webkit-padding-start:3px;padding-bottom:1px;border-radius:3px}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}.uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 3px #2275d780}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionBtn--done{line-height:1;border-radius:3px;padding:7px 8px}.uppy-StatusBar-actionBtn--done:focus{outline:none}.uppy-StatusBar-actionBtn--done::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--done:hover{color:#1b5dab}.uppy-StatusBar-actionBtn--done:focus{background-color:#eceef2}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done:focus{background-color:#333}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done{color:#02baf2}.uppy-size--md .uppy-StatusBar-actionBtn--done{font-size:14px}.uppy-StatusBar-serviceMsg{font-size:11px;line-height:1.1;color:#000;padding-left:10px}.uppy-size--md .uppy-StatusBar-serviceMsg{font-size:14px;padding-left:15px}[data-uppy-theme=dark] .uppy-StatusBar-serviceMsg{color:#eaeaea}.uppy-StatusBar-serviceMsg-ghostsIcon{opacity:.5;vertical-align:text-bottom;position:relative;top:2px;left:6px;width:10px}.uppy-size--md .uppy-StatusBar-serviceMsg-ghostsIcon{width:15px;left:10px;top:1px}[dir=ltr] .uppy-StatusBar-details{left:2px}[dir=rtl] .uppy-StatusBar-details{right:2px}.uppy-StatusBar-details{line-height:12px;width:13px;height:13px;display:inline-block;vertical-align:middle;color:#fff;background-color:#939393;border-radius:50%;position:relative;top:0;font-size:10px;font-weight:600;text-align:center;cursor:help}.uppy-StatusBar-details:after{line-height:1.3;word-wrap:break-word}[dir=ltr] .uppy-StatusBar-spinner{margin-right:10px}[dir=rtl] .uppy-StatusBar-spinner{margin-left:10px}.uppy-StatusBar-spinner{-webkit-animation-name:uppy-StatusBar-spinnerAnimation;animation-name:uppy-StatusBar-spinnerAnimation;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-margin-end:10px;fill:#2275d7}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-spinner,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-spinner{fill:#f6a623}@-webkit-keyframes uppy-StatusBar-spinnerAnimation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes uppy-StatusBar-spinnerAnimation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;padding:6px}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list:after{content:\"\";flex:auto}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem{width:50%;position:relative;margin:0}.uppy-size--md .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem{width:33.3333%}.uppy-size--lg .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem{width:25%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem:before{content:\"\";padding-top:100%;display:block}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected svg{opacity:.85}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--disabled{opacity:.5}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#93939333}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#eaeaea33}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg{fill:#000000b3;width:30%;height:30%}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg{fill:#fffc}.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner{border-radius:4px;overflow:hidden;position:absolute;top:7px;left:7px;right:7px;bottom:7px;text-align:center;width:calc(100% - 14px);height:calc(100% - 14px)}.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner:focus{outline:none;box-shadow:0 0 0 3px #2275d7e6}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner{box-shadow:0 0 0 3px #aae1ffb3}.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:4px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox{position:absolute;top:16px;right:16px;width:26px;height:26px;background-color:#2275d7;border-radius:50%;z-index:1002;opacity:0}[dir=ltr] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox:after{left:7px}[dir=rtl] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox:after{right:7px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox:after{width:12px;height:7px;top:8px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox--is-checked{opacity:1}.uppy-ProviderBrowser-viewType--list{background-color:#fff}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list{background-color:#1f1f1f}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{display:flex;align-items:center;padding:7px 15px;margin:0}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{color:#eaeaea}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem--disabled{opacity:.6}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox{margin-right:15px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox{margin-left:15px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox{-webkit-margin-end:15px;height:17px;width:17px;border-radius:3px;background-color:#fff;border:1px solid #cfcfcf}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:focus{border:1px solid #2275d7;box-shadow:0 0 0 3px #2275d740;outline:none}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:after{left:3px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:after{right:3px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:after{opacity:0;height:5px;width:9px;top:4px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:focus{border-color:#02baf2b3;box-shadow:0 0 0 3px #02baf233}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox--is-checked{background-color:#2275d7;border-color:#2275d7}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox--is-checked:after{opacity:1}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:flex;align-items:center;padding:2px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner:focus{outline:none;text-decoration:underline}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-right:8px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-left:8px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{-webkit-margin-end:8px;max-width:20px;max-height:20px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;line-height:1.2}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--disabled .uppy-ProviderBrowserItem-inner{cursor:default}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-right:7px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-left:7px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{width:20px;-webkit-margin-end:7px}.uppy-ProviderBrowserItem-fakeCheckbox{position:relative;cursor:pointer;flex-shrink:0}.uppy-ProviderBrowserItem-fakeCheckbox:disabled{cursor:default}.uppy-ProviderBrowserItem-fakeCheckbox:after{content:\"\";position:absolute;cursor:pointer;border-left:2px solid #eaeaea;border-bottom:2px solid #eaeaea;transform:rotate(-45deg)}.uppy-ProviderBrowserItem-fakeCheckbox:disabled:after{cursor:default}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-fakeCheckbox{background-color:#1f1f1f;border-color:#939393}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-fakeCheckbox--is-checked{background-color:#333}.uppy-SearchProvider{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}[data-uppy-theme=dark] .uppy-SearchProvider{background-color:#1f1f1f}.uppy-SearchProvider-input{width:90%;max-width:650px;margin-bottom:15px}.uppy-size--md .uppy-SearchProvider-input{margin-bottom:20px}.uppy-SearchProvider-searchButton{padding:13px 25px}.uppy-size--md .uppy-SearchProvider-searchButton{padding:13px 30px}.uppy-DashboardContent-panelBody{display:flex;align-items:center;justify-content:center;flex:1}[data-uppy-theme=dark] .uppy-DashboardContent-panelBody{background-color:#1f1f1f}.uppy-Provider-auth,.uppy-Provider-empty,.uppy-Provider-error,.uppy-Provider-loading{display:flex;align-items:center;justify-content:center;flex-flow:column wrap;flex:1;color:#939393}.uppy-Provider-empty{color:#939393}.uppy-Provider-authIcon svg{width:100px;height:75px;margin-bottom:15px}.uppy-Provider-authTitle{font-size:17px;line-height:1.4;font-weight:400;margin-bottom:30px;padding:0 15px;max-width:500px;text-align:center;color:#757575}.uppy-size--md .uppy-Provider-authTitle{font-size:20px}[data-uppy-theme=dark] .uppy-Provider-authTitle{color:#cfcfcf}[dir=ltr] .uppy-Provider-breadcrumbs{text-align:left}[dir=rtl] .uppy-Provider-breadcrumbs{text-align:right}.uppy-Provider-breadcrumbs{flex:1;color:#525252;font-size:12px;margin-bottom:10px}.uppy-size--md .uppy-Provider-breadcrumbs{margin-bottom:0}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs{color:#eaeaea}[dir=ltr] .uppy-Provider-breadcrumbsIcon{margin-right:4px}[dir=rtl] .uppy-Provider-breadcrumbsIcon{margin-left:4px}.uppy-Provider-breadcrumbsIcon{display:inline-block;color:#525252;vertical-align:middle;-webkit-margin-end:4px;line-height:1}.uppy-Provider-breadcrumbsIcon svg{width:13px;height:13px;fill:#525252}.uppy-Provider-breadcrumbs button{display:inline-block;line-height:inherit;padding:4px;border-radius:3px}.uppy-Provider-breadcrumbs button:focus{outline:none}.uppy-Provider-breadcrumbs button::-moz-focus-inner{border:0}.uppy-Provider-breadcrumbs button:hover{color:#1b5dab}.uppy-Provider-breadcrumbs button:focus{background-color:#eceef2}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button:focus{background-color:#333}.uppy-Provider-breadcrumbs button:hover{text-decoration:underline;cursor:pointer}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button{color:#eaeaea}.uppy-ProviderBrowser{display:flex;flex-direction:column;flex:1;font-size:14px;font-weight:400;height:100%}.uppy-ProviderBrowser-user{margin:0 8px 0 0;font-weight:500;color:#333}[data-uppy-theme=dark] .uppy-ProviderBrowser-user{color:#eaeaea}[dir=ltr] .uppy-ProviderBrowser-user:after{left:4px}[dir=rtl] .uppy-ProviderBrowser-user:after{right:4px}.uppy-ProviderBrowser-user:after{content:\"\\b7\";position:relative;color:#939393;font-weight:400}.uppy-ProviderBrowser-header{z-index:1001;border-bottom:1px solid #eaeaea;position:relative}[data-uppy-theme=dark] .uppy-ProviderBrowser-header{border-bottom:1px solid #333}.uppy-ProviderBrowser-headerBar{padding:7px 15px;background-color:#fafafa;z-index:1001;color:#757575;line-height:1.4;font-size:12px}.uppy-size--md .uppy-ProviderBrowser-headerBar{display:flex;align-items:center}[data-uppy-theme=dark] .uppy-ProviderBrowser-headerBar{background-color:#1f1f1f}.uppy-ProviderBrowser-headerBar--simple{text-align:center;display:block;justify-content:center}.uppy-ProviderBrowser-headerBar--simple .uppy-Provider-breadcrumbsWrap{flex:none;display:inline-block;vertical-align:middle}.uppy-ProviderBrowser-search{width:100%;background-color:#fff;position:relative;height:30px;margin-top:10px;margin-bottom:5px;display:flex;align-items:center}[data-uppy-theme=dark] .uppy-ProviderBrowser-search{background-color:#1f1f1f}[dir=ltr] .uppy-ProviderBrowser-searchIcon{left:16px}[dir=rtl] .uppy-ProviderBrowser-searchIcon{right:16px}.uppy-ProviderBrowser-searchIcon{position:absolute;width:12px;height:12px;z-index:1002;color:#bbb}[dir=ltr] .uppy-ProviderBrowser-searchInput{padding-left:27px}[dir=rtl] .uppy-ProviderBrowser-searchInput{padding-right:27px}.uppy-ProviderBrowser-searchInput{width:100%;height:30px;background-color:transparent;outline:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:12px;line-height:1.4;border:0;margin:0 8px;-webkit-padding-start:27px;z-index:1001;border-radius:4px}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchInput{background-color:#1f1f1f;color:#eaeaea}.uppy-ProviderBrowser-searchInput:focus{outline:0;background-color:#f4f4f4}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchInput:focus{background-color:#333}[dir=ltr] .uppy-ProviderBrowser-searchClose{right:12px}[dir=rtl] .uppy-ProviderBrowser-searchClose{left:12px}.uppy-ProviderBrowser-searchClose{position:absolute;width:22px;height:22px;padding:6px;top:4px;z-index:1002;color:#939393;cursor:pointer}.uppy-ProviderBrowser-searchClose:hover{color:#757575}.uppy-ProviderBrowser-searchClose svg{vertical-align:text-top}.uppy-ProviderBrowser-searchInput:-ms-input-placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-searchInput::-moz-placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-searchInput::placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-userLogout{cursor:pointer;line-height:inherit;color:#2275d7;padding:4px;border-radius:3px}.uppy-ProviderBrowser-userLogout:focus{outline:none}.uppy-ProviderBrowser-userLogout::-moz-focus-inner{border:0}.uppy-ProviderBrowser-userLogout:hover{color:#1b5dab}.uppy-ProviderBrowser-userLogout:focus{background-color:#eceef2}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout:focus{background-color:#333}.uppy-ProviderBrowser-userLogout:hover{text-decoration:underline}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout{color:#eaeaea}.uppy-ProviderBrowser-body{flex:1;position:relative}.uppy-ProviderBrowser-list{flex:1;position:relative;display:block;width:100%;height:100%;background-color:#fff;border-spacing:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;position:absolute;top:0;bottom:0;left:0;right:0;list-style:none;margin:0;padding:0}[data-uppy-theme=dark] .uppy-ProviderBrowser-list{background-color:#1f1f1f}.uppy-ProviderBrowser-list:focus{outline:none}.uppy-ProviderBrowserItem-inner{cursor:pointer;font-weight:500;font-size:13px}.uppy-ProviderBrowser-footer{display:flex;align-items:center;background-color:#fff;height:65px;border-top:1px solid #eaeaea;padding:0 15px}[dir=ltr] .uppy-ProviderBrowser-footer button{margin-right:8px}[dir=rtl] .uppy-ProviderBrowser-footer button{margin-left:8px}.uppy-ProviderBrowser-footer button{-webkit-margin-end:8px}[data-uppy-theme=dark] .uppy-ProviderBrowser-footer{background-color:#1f1f1f;border-top:1px solid #333}.uppy-Dashboard-Item-previewInnerWrap{width:100%;height:100%;overflow:hidden;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;box-shadow:0 0 2px #0006;border-radius:3px}.uppy-size--md .uppy-Dashboard-Item-previewInnerWrap{box-shadow:0 1px 2px #00000026}.uppy-Dashboard-Item-previewInnerWrap:after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;background-color:#000000a6;display:none;z-index:1001}.uppy-Dashboard-Item-previewLink{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1002}.uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #76abe9}[data-uppy-theme=dark] .uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #016c8d}.uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transform:translateZ(0);border-radius:3px}.uppy-Dashboard-Item-progress{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1002;color:#fff;text-align:center;width:120px;transition:all .35 ease}.uppy-Dashboard-Item-progressIndicator{display:inline-block;width:38px;height:38px;opacity:.9}.uppy-size--md .uppy-Dashboard-Item-progressIndicator{width:55px;height:55px}button.uppy-Dashboard-Item-progressIndicator{cursor:pointer}button.uppy-Dashboard-Item-progressIndicator:focus{outline:none}button.uppy-Dashboard-Item-progressIndicator::-moz-focus-inner{border:0}button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--bg,button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--retry{fill:#76abe9}.uppy-Dashboard-Item-progressIcon--circle{width:100%;height:100%}.uppy-Dashboard-Item-progressIcon--bg{stroke:#fff6}.uppy-Dashboard-Item-progressIcon--progress{stroke:#fff;transition:stroke-dashoffset .5s ease-out}.uppy-Dashboard-Item-progressIcon--play{stroke:#fff;fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--cancel{fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--pause{stroke:#fff;fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--check{fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--retry{fill:#fff}[dir=ltr] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:-8px}[dir=rtl] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{left:-8px}[dir=ltr] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{left:auto}[dir=rtl] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:auto}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{transform:none;top:-9px;width:auto}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{width:18px;height:18px}.uppy-size--md .uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{width:28px;height:28px}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{width:18px;height:18px;opacity:1}.uppy-size--md .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{width:22px;height:22px}.uppy-Dashboard-Item.is-processing .uppy-Dashboard-Item-progress{opacity:0}[dir=ltr] .uppy-Dashboard-Item-fileInfo{padding-right:5px}[dir=rtl] .uppy-Dashboard-Item-fileInfo{padding-left:5px}.uppy-Dashboard-Item-fileInfo{-webkit-padding-end:5px}.uppy-Dashboard-Item-name{font-size:12px;line-height:1.3;font-weight:500;margin-bottom:5px;word-break:break-all;word-wrap:anywhere}[data-uppy-theme=dark] .uppy-Dashboard-Item-name{color:#eaeaea}.uppy-Dashboard-Item-status{font-size:11px;line-height:1;font-weight:400;color:#757575}[data-uppy-theme=dark] .uppy-Dashboard-Item-status{color:#bbb}.uppy-Dashboard-Item-statusSize{display:inline-block;vertical-align:bottom;text-transform:uppercase}.uppy-Dashboard-Item-reSelect{font-family:inherit;font-size:inherit;font-weight:600;color:#2275d7}.uppy-Dashboard-Item-action{cursor:pointer;color:#939393}.uppy-Dashboard-Item-action:focus{outline:none}.uppy-Dashboard-Item-action::-moz-focus-inner{border:0}.uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 3px #2275d780}.uppy-Dashboard-Item-action:hover{opacity:1;color:#1f1f1f}[data-uppy-theme=dark] .uppy-Dashboard-Item-action{color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{outline:none}[data-uppy-theme=dark] .uppy-Dashboard-Item-action::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:hover{color:#eaeaea}.uppy-Dashboard-Item-action--remove{color:#1f1f1f;opacity:.95}.uppy-Dashboard-Item-action--remove:hover{opacity:1;color:#000}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove{color:#525252}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove:hover{color:#333}.uppy-Dashboard:not(.uppy-size--md) .uppy-Dashboard-Item-actionWrapper{display:flex;align-items:center}.uppy-Dashboard:not(.uppy-size--md) .uppy-Dashboard-Item-action{width:22px;height:22px;padding:3px;margin-left:3px}.uppy-Dashboard:not(.uppy-size--md) .uppy-Dashboard-Item-action:focus{border-radius:3px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink,.uppy-size--md .uppy-Dashboard-Item-action--edit{width:16px;height:16px;padding:0}.uppy-size--md .uppy-Dashboard-Item-action--copyLink:focus,.uppy-size--md .uppy-Dashboard-Item-action--edit:focus{border-radius:3px}[dir=ltr] .uppy-size--md .uppy-Dashboard-Item-action--remove{right:-8px}[dir=rtl] .uppy-size--md .uppy-Dashboard-Item-action--remove{left:-8px}.uppy-size--md .uppy-Dashboard-Item-action--remove{z-index:1002;position:absolute;top:-8px;width:18px;height:18px;padding:0}.uppy-size--md .uppy-Dashboard-Item-action--remove:focus{border-radius:50%}[dir=ltr] .uppy-Dashboard-Item{padding-right:0}[dir=rtl] .uppy-Dashboard-Item{padding-left:0}.uppy-Dashboard-Item{display:flex;align-items:center;border-bottom:1px solid #eaeaea;padding:10px;-webkit-padding-end:0}[data-uppy-theme=dark] .uppy-Dashboard-Item{border-bottom:1px solid #333}[dir=ltr] .uppy-size--md .uppy-Dashboard-Item{float:left}[dir=rtl] .uppy-size--md .uppy-Dashboard-Item{float:right}.uppy-size--md .uppy-Dashboard-Item{position:relative;display:block;margin:5px 15px;padding:0;width:calc(33.333% - 30px);height:215px;border-bottom:0}.uppy-size--lg .uppy-Dashboard-Item{margin:5px 15px;width:calc(25% - 30px);height:190px}.uppy-size--xl .uppy-Dashboard-Item{width:calc(20% - 30px);height:210px}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-previewInnerWrap{opacity:.2}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-name{opacity:.7}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='39'%3E%3Cpath d='M1.708 38.66c1.709 0 3.417-3.417 6.834-3.417 3.416 0 5.125 3.417 8.61 3.417 3.348 0 5.056-3.417 8.473-3.417 4.305 0 5.125 3.417 6.833 3.417.889 0 1.709-.889 1.709-1.709v-19.68C34.167-5.757 0-5.757 0 17.271v19.68c0 .82.888 1.709 1.708 1.709zm8.542-17.084a3.383 3.383 0 01-3.417-3.416 3.383 3.383 0 013.417-3.417 3.383 3.383 0 013.417 3.417 3.383 3.383 0 01-3.417 3.416zm13.667 0A3.383 3.383 0 0120.5 18.16a3.383 3.383 0 013.417-3.417 3.383 3.383 0 013.416 3.417 3.383 3.383 0 01-3.416 3.416z' fill='%2523000'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:50% 10px;background-size:25px;z-index:1005;opacity:.5}.uppy-size--md .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-size:40px;background-position:50% 50%}.uppy-Dashboard-Item-preview{position:relative}.uppy-Dashboard:not(.uppy-size--md) .uppy-Dashboard-Item-preview{flex-shrink:0;flex-grow:0;width:50px;height:50px}.uppy-size--md .uppy-Dashboard-Item-preview{width:100%;height:140px}.uppy-size--lg .uppy-Dashboard-Item-preview{height:120px}.uppy-size--xl .uppy-Dashboard-Item-preview{height:140px}[dir=ltr] .uppy-Dashboard-Item-fileInfoAndButtons{padding-right:8px}[dir=rtl] .uppy-Dashboard-Item-fileInfoAndButtons{padding-left:8px}[dir=ltr] .uppy-Dashboard-Item-fileInfoAndButtons{padding-left:12px}[dir=rtl] .uppy-Dashboard-Item-fileInfoAndButtons{padding-right:12px}.uppy-Dashboard-Item-fileInfoAndButtons{flex-grow:1;-webkit-padding-end:8px;-webkit-padding-start:12px;display:flex;align-items:center;justify-content:space-between}.uppy-size--md .uppy-Dashboard-Item-fileInfoAndButtons{align-items:flex-start;width:100%;padding:9px 0 0}.uppy-Dashboard-Item-fileInfo{flex-grow:1;flex-shrink:1}.uppy-Dashboard-Item-actionWrapper{flex-grow:0;flex-shrink:0}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-previewInnerWrap:after,.uppy-Dashboard-Item.is-inprogress .uppy-Dashboard-Item-previewInnerWrap:after{display:block}.uppy-Dashboard-Item.is-inprogress:not(.is-resumable) .uppy-Dashboard-Item-action--remove{display:none}[dir=ltr] .uppy-Dashboard-Item-errorDetails{left:6px}[dir=rtl] .uppy-Dashboard-Item-errorDetails{right:6px}.uppy-Dashboard-Item-errorDetails{line-height:12px;width:12px;height:12px;display:inline-block;vertical-align:middle;color:#fff;background-color:#939393;border-radius:50%;position:relative;top:-1px;font-size:8px;font-weight:600;text-align:center;cursor:help}.uppy-Dashboard-Item-errorDetails:after{line-height:1.3;word-wrap:break-word}.uppy-Dashboard-FileCard{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1005;box-shadow:0 0 10px 4px #0000001a;background-color:#fff;border-radius:5px;display:flex;flex-direction:column}.uppy-Dashboard-FileCard .uppy-DashboardContent-bar{border-top-left-radius:5px;border-top-right-radius:5px}.uppy-Dashboard-FileCard .uppy-Dashboard-FileCard-actions{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.uppy-Dashboard-FileCard-inner{height:100%;flex-grow:1;flex-direction:column}.uppy-Dashboard-FileCard-inner,.uppy-Dashboard-FileCard-preview{flex-shrink:1;min-height:0;display:flex}.uppy-Dashboard-FileCard-preview{height:60%;flex-grow:0;border-bottom:1px solid #eaeaea;align-items:center;justify-content:center;position:relative}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-preview{background-color:#333;border-bottom:0}.uppy-Dashboard-FileCard-preview img.uppy-Dashboard-Item-previewImg{max-width:90%;max-height:90%;-o-object-fit:cover;object-fit:cover;flex:0 0 auto;border-radius:3px;box-shadow:0 3px 20px #00000026}[dir=ltr] .uppy-Dashboard-FileCard-edit{right:10px}[dir=rtl] .uppy-Dashboard-FileCard-edit{left:10px}.uppy-Dashboard-FileCard-edit{position:absolute;top:10px;font-size:13px;background-color:#00000080;color:#fff;padding:7px 15px;border-radius:50px}.uppy-Dashboard-FileCard-edit:focus{outline:none}.uppy-Dashboard-FileCard-edit::-moz-focus-inner{border:0}.uppy-Dashboard-FileCard-edit:focus{box-shadow:0 0 0 3px #2275d780}.uppy-Dashboard-FileCard-edit:hover{background-color:#000c}.uppy-Dashboard-FileCard-info{height:40%;flex-grow:0;flex-shrink:0;padding:30px 20px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-info{background-color:#1f1f1f}.uppy-Dashboard-FileCard-fieldset{font-size:0;border:0;padding:0;max-width:640px;margin:auto auto 12px}.uppy-Dashboard-FileCard-label{display:inline-block;vertical-align:middle;width:22%;font-size:12px;color:#525252}.uppy-size--md .uppy-Dashboard-FileCard-label{font-size:14px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-label{color:#eaeaea}.uppy-Dashboard-FileCard-input{display:inline-block;vertical-align:middle;width:78%}.uppy-Dashboard-FileCard-actions{height:55px;flex-shrink:0;flex-grow:0;border-top:1px solid #eaeaea;padding:0 15px;background-color:#fafafa;display:flex;align-items:center}.uppy-size--md .uppy-Dashboard-FileCard-actions{height:65px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-actions{border-top:1px solid #333;background-color:#1f1f1f}[dir=ltr] .uppy-Dashboard-FileCard-actionsBtn{margin-right:10px}[dir=rtl] .uppy-Dashboard-FileCard-actionsBtn{margin-left:10px}.uppy-Dashboard-FileCard-actionsBtn{-webkit-margin-end:10px}.uppy-transition-slideDownUp-enter{opacity:.01;transform:translateY(-105%);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active{opacity:1;transform:translateZ(0)}.uppy-transition-slideDownUp-leave{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active{opacity:.01;transform:translateY(-105%)}@-webkit-keyframes uppy-Dashboard-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes uppy-Dashboard-fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes uppy-Dashboard-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes uppy-Dashboard-fadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes uppy-Dashboard-slideDownAndFadeIn{0%{transform:translate(-50%,-70%);opacity:0}to{transform:translate(-50%,-50%);opacity:1}}@keyframes uppy-Dashboard-slideDownAndFadeIn{0%{transform:translate(-50%,-70%);opacity:0}to{transform:translate(-50%,-50%);opacity:1}}@-webkit-keyframes uppy-Dashboard-slideDownAndFadeIn--small{0%{transform:translateY(-20%);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes uppy-Dashboard-slideDownAndFadeIn--small{0%{transform:translateY(-20%);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes uppy-Dashboard-slideUpFadeOut{0%{transform:translate(-50%,-50%);opacity:1}to{transform:translate(-50%,-70%);opacity:0}}@keyframes uppy-Dashboard-slideUpFadeOut{0%{transform:translate(-50%,-50%);opacity:1}to{transform:translate(-50%,-70%);opacity:0}}@-webkit-keyframes uppy-Dashboard-slideUpFadeOut--small{0%{transform:translateZ(0);opacity:1}to{transform:translateY(-20%);opacity:0}}@keyframes uppy-Dashboard-slideUpFadeOut--small{0%{transform:translateZ(0);opacity:1}to{transform:translateY(-20%);opacity:0}}.uppy-Dashboard--modal{z-index:1001}.uppy-Dashboard--modal[aria-hidden=true]{display:none}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{-webkit-animation:uppy-Dashboard-slideDownAndFadeIn--small .3s cubic-bezier(0,0,.2,1);animation:uppy-Dashboard-slideDownAndFadeIn--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{-webkit-animation:uppy-Dashboard-slideDownAndFadeIn .3s cubic-bezier(0,0,.2,1);animation:uppy-Dashboard-slideDownAndFadeIn .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-overlay{-webkit-animation:uppy-Dashboard-fadeIn .3s cubic-bezier(0,0,.2,1);animation:uppy-Dashboard-fadeIn .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{-webkit-animation:uppy-Dashboard-slideUpFadeOut--small .3s cubic-bezier(0,0,.2,1);animation:uppy-Dashboard-slideUpFadeOut--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{-webkit-animation:uppy-Dashboard-slideUpFadeOut .3s cubic-bezier(0,0,.2,1);animation:uppy-Dashboard-slideUpFadeOut .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-overlay{-webkit-animation:uppy-Dashboard-fadeOut .3s cubic-bezier(0,0,.2,1);animation:uppy-Dashboard-fadeOut .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard-isFixed{overflow:hidden;height:100vh}.uppy-Dashboard--modal .uppy-Dashboard-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:1001}.uppy-Dashboard-inner{position:relative;background-color:#fafafa;max-width:100%;max-height:100%;outline:none;border:1px solid #eaeaea;border-radius:5px}.uppy-size--md .uppy-Dashboard-inner{min-height:auto}@media only screen and (min-width:820px){.uppy-Dashboard-inner{width:750px;height:550px}}.uppy-Dashboard--modal .uppy-Dashboard-inner{z-index:1002}[data-uppy-theme=dark] .uppy-Dashboard-inner{background-color:#1f1f1f}.uppy-Dashboard--isDisabled .uppy-Dashboard-inner{cursor:not-allowed}.uppy-Dashboard-innerWrap{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;border-radius:5px;opacity:0}.uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap{opacity:1}.uppy-Dashboard--isDisabled .uppy-Dashboard-innerWrap{pointer-events:none;opacity:.6;filter:grayscale(100%);-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.uppy-Dashboard--isDisabled .uppy-ProviderIconBg{fill:#9f9f9f}.uppy-Dashboard--modal .uppy-Dashboard-inner{position:fixed;top:35px;left:15px;right:15px;bottom:15px;border:none}@media only screen and (min-width:820px){.uppy-Dashboard--modal .uppy-Dashboard-inner{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);box-shadow:0 5px 15px 4px #00000026}}[dir=ltr] .uppy-Dashboard-close{right:-2px}[dir=rtl] .uppy-Dashboard-close{left:-2px}.uppy-Dashboard-close{display:block;position:absolute;top:-33px;cursor:pointer;color:#ffffffe6;font-size:27px;z-index:1005}.uppy-Dashboard-close:focus{outline:none}.uppy-Dashboard-close::-moz-focus-inner{border:0}.uppy-Dashboard-close:focus{color:#8cb8ed}@media only screen and (min-width:820px){[dir=ltr] .uppy-Dashboard-close{right:-35px}[dir=rtl] .uppy-Dashboard-close{left:-35px}.uppy-Dashboard-close{font-size:35px;top:-10px}}.uppy-Dashboard-serviceMsg{background-color:#fffbf7;border-top:1px solid #edd4b9;border-bottom:1px solid #edd4b9;font-size:12px;line-height:1.3;font-weight:500;padding:12px 0;position:relative;top:-1px;z-index:1004}.uppy-size--md .uppy-Dashboard-serviceMsg{font-size:14px;line-height:1.4}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg{background-color:#1f1f1f;color:#eaeaea;border-top:1px solid #333;border-bottom:1px solid #333}.uppy-Dashboard-serviceMsg-title{display:block;margin-bottom:4px;padding-left:42px;line-height:1}.uppy-Dashboard-serviceMsg-text{padding:0 15px}.uppy-Dashboard-serviceMsg-actionBtn{font-size:inherit;font-weight:inherit;vertical-align:baseline;vertical-align:initial;color:#2275d7}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg-actionBtn{color:#02baf2e6}.uppy-Dashboard-serviceMsg-icon{position:absolute;top:10px;left:15px}.uppy-Dashboard-AddFiles{display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%;position:relative;text-align:center}[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles{margin:7px;height:calc(100% - 14px);border-radius:3px;border:1px dashed #dfdfdf}.uppy-Dashboard-AddFilesPanel .uppy-Dashboard-AddFiles{border:none;height:calc(100% - 54px)}.uppy-Dashboard--modal .uppy-Dashboard-AddFiles{border-color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles{border-color:#757575}.uppy-Dashboard-AddFiles-info{padding-top:15px;padding-bottom:15px;margin-top:auto;display:none}.uppy-size--height-md .uppy-Dashboard-AddFiles-info{display:block}.uppy-size--md .uppy-Dashboard-AddFiles-info{position:absolute;bottom:25px;left:0;right:0;padding-top:30px;padding-bottom:0}[data-uppy-num-acquirers=\"0\"] .uppy-Dashboard-AddFiles-info{margin-top:0}.uppy-Dashboard-browse{cursor:pointer;color:#2275d7e6}.uppy-Dashboard-browse:focus{outline:none}.uppy-Dashboard-browse::-moz-focus-inner{border:0}.uppy-Dashboard-browse:focus,.uppy-Dashboard-browse:hover{border-bottom:1px solid #2275d7}[data-uppy-theme=dark] .uppy-Dashboard-browse{color:#02baf2e6}[data-uppy-theme=dark] .uppy-Dashboard-browse:focus,[data-uppy-theme=dark] .uppy-Dashboard-browse:hover{border-bottom:1px solid #02baf2}.uppy-Dashboard-browseBtn{display:block;font-size:14px;font-weight:500;margin-top:8px;margin-bottom:5px;width:100%}.uppy-size--md .uppy-Dashboard-browseBtn{font-size:15px;width:auto;margin:15px auto;padding:13px 44px}.uppy-Dashboard-AddFiles-list{display:flex;flex-direction:column;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-top:2px;padding:2px 0;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-list{flex-direction:row;flex-wrap:wrap;justify-content:center;max-width:600px;overflow-y:visible;margin-top:15px;padding-top:0;flex:none}.uppy-DashboardTab{width:100%;text-align:center;border-bottom:1px solid #eaeaea}[data-uppy-theme=dark] .uppy-DashboardTab{border-bottom:1px solid #333}.uppy-size--md .uppy-DashboardTab{display:inline-block;width:auto;margin-bottom:10px;border-bottom:none}.uppy-DashboardTab-btn{width:100%;height:100%;cursor:pointer;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#525252;display:flex;flex-direction:row;align-items:center;padding:12px 15px}.uppy-DashboardTab-btn:focus{outline:none}[dir=ltr] .uppy-size--md .uppy-DashboardTab-btn{margin-right:1px}[dir=rtl] .uppy-size--md .uppy-DashboardTab-btn{margin-left:1px}.uppy-size--md .uppy-DashboardTab-btn{width:86px;-webkit-margin-end:1px;flex-direction:column;padding:10px 3px;border-radius:5px}[data-uppy-theme=dark] .uppy-DashboardTab-btn{color:#eaeaea}.uppy-DashboardTab-btn::-moz-focus-inner{border:0}.uppy-DashboardTab-btn:hover{background-color:#f1f3f6}[data-uppy-theme=dark] .uppy-DashboardTab-btn:hover{background-color:#333}.uppy-DashboardTab-btn:active,.uppy-DashboardTab-btn:focus{background-color:#eceef2}[data-uppy-theme=dark] .uppy-DashboardTab-btn:active,[data-uppy-theme=dark] .uppy-DashboardTab-btn:focus{background-color:#525252}[dir=ltr] .uppy-DashboardTab-btn svg{margin-right:10px}[dir=rtl] .uppy-DashboardTab-btn svg{margin-left:10px}.uppy-DashboardTab-btn svg{max-width:100%;max-height:100%;display:inline-block;vertical-align:text-top;overflow:hidden;transition:transform .15s ease-in-out;-webkit-margin-end:10px}[dir=ltr] .uppy-size--md .uppy-DashboardTab-btn svg{margin-right:0}[dir=rtl] .uppy-size--md .uppy-DashboardTab-btn svg{margin-left:0}.uppy-size--md .uppy-DashboardTab-btn svg{-webkit-margin-end:0}.uppy-DashboardTab-name{font-size:14px;font-weight:500}.uppy-size--md .uppy-DashboardTab-name{font-size:11px;line-height:15px;margin-top:8px;margin-bottom:0}.uppy-DashboardTab svg{width:23px;height:23px;vertical-align:middle}.uppy-size--md .uppy-DashboardTab svg{width:30px;height:30px}.uppy-Dashboard-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.uppy-DashboardContent-bar{flex-shrink:0;height:40px;width:100%;padding:0 10px;z-index:1004;display:flex;align-items:center;justify-content:space-between;position:relative;border-bottom:1px solid #eaeaea;background-color:#fafafa}.uppy-size--md .uppy-DashboardContent-bar{height:50px;padding:0 15px}[data-uppy-theme=dark] .uppy-DashboardContent-bar{background-color:#1f1f1f;border-bottom:1px solid #333}.uppy-DashboardContent-title{position:absolute;top:0;left:0;right:0;text-align:center;font-size:12px;line-height:40px;font-weight:500;width:100%;max-width:170px;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;margin:auto}.uppy-size--md .uppy-DashboardContent-title{font-size:14px;line-height:50px;max-width:300px}[data-uppy-theme=dark] .uppy-DashboardContent-title{color:#eaeaea}[dir=ltr] .uppy-DashboardContent-back,[dir=ltr] .uppy-DashboardContent-save{margin-left:-6px}[dir=rtl] .uppy-DashboardContent-back,[dir=rtl] .uppy-DashboardContent-save{margin-right:-6px}.uppy-DashboardContent-back,.uppy-DashboardContent-save{background:none;-webkit-appearance:none;font-family:inherit;font-size:inherit;line-height:1;margin:0;border:0;color:inherit;border-radius:3px;font-size:12px;font-weight:400;cursor:pointer;color:#2275d7;padding:7px 6px;-webkit-margin-start:-6px}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{outline:none}.uppy-DashboardContent-back::-moz-focus-inner,.uppy-DashboardContent-save::-moz-focus-inner{border:0}.uppy-DashboardContent-back:hover,.uppy-DashboardContent-save:hover{color:#1b5dab}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{background-color:#eceef2}[data-uppy-theme=dark] .uppy-DashboardContent-back:focus,[data-uppy-theme=dark] .uppy-DashboardContent-save:focus{background-color:#333}.uppy-size--md .uppy-DashboardContent-back,.uppy-size--md .uppy-DashboardContent-save{font-size:14px}[data-uppy-theme=dark] .uppy-DashboardContent-back,[data-uppy-theme=dark] .uppy-DashboardContent-save{color:#02baf2}[dir=ltr] .uppy-DashboardContent-addMore{margin-right:-5px}[dir=rtl] .uppy-DashboardContent-addMore{margin-left:-5px}.uppy-DashboardContent-addMore{background:none;-webkit-appearance:none;font-family:inherit;font-size:inherit;line-height:1;margin:0;border:0;color:inherit;border-radius:3px;font-weight:500;cursor:pointer;color:#2275d7;width:29px;height:29px;padding:7px 8px;-webkit-margin-end:-5px}.uppy-DashboardContent-addMore:focus{outline:none}.uppy-DashboardContent-addMore::-moz-focus-inner{border:0}.uppy-DashboardContent-addMore:hover{color:#1b5dab}.uppy-DashboardContent-addMore:focus{background-color:#eceef2}[data-uppy-theme=dark] .uppy-DashboardContent-addMore:focus{background-color:#333}[dir=ltr] .uppy-size--md .uppy-DashboardContent-addMore{margin-right:-8px}[dir=rtl] .uppy-size--md .uppy-DashboardContent-addMore{margin-left:-8px}.uppy-size--md .uppy-DashboardContent-addMore{font-size:14px;width:auto;height:auto;-webkit-margin-end:-8px}[data-uppy-theme=dark] .uppy-DashboardContent-addMore{color:#02baf2}[dir=ltr] .uppy-DashboardContent-addMore svg{margin-right:4px}[dir=rtl] .uppy-DashboardContent-addMore svg{margin-left:4px}.uppy-DashboardContent-addMore svg{vertical-align:baseline;-webkit-margin-end:4px}.uppy-size--md .uppy-DashboardContent-addMore svg{width:11px;height:11px}.uppy-DashboardContent-addMoreCaption{display:none}.uppy-size--md .uppy-DashboardContent-addMoreCaption{display:inline}.uppy-DashboardContent-panel{background-color:#f5f5f5;flex-direction:column;flex:1}.uppy-Dashboard-AddFilesPanel,.uppy-DashboardContent-panel{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;z-index:1005;border-radius:5px;display:flex}.uppy-Dashboard-AddFilesPanel{background:#fafafa;background:linear-gradient(0deg,#fafafa 35%,hsla(0,0%,98%,.85));box-shadow:0 0 10px 5px #00000026;flex-direction:column}[data-uppy-theme=dark] .uppy-Dashboard-AddFilesPanel{background-color:#333;background:linear-gradient(0deg,#1f1f1f 35%,rgba(31,31,31,.85))}.uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files{filter:blur(2px)}.uppy-Dashboard-progress{position:absolute;bottom:0;left:0;width:100%;height:12%}.uppy-Dashboard-progressBarContainer.is-active{z-index:1004;position:absolute;top:0;left:0;width:100%;height:100%}.uppy-Dashboard:not(.uppy-size--md) .uppy-StatusBar-additionalInfo{display:none}.uppy-Dashboard-filesContainer{position:relative;overflow-y:hidden;margin:0;flex:1}.uppy-Dashboard-filesContainer:after{content:\"\";display:table;clear:both}.uppy-Dashboard-files{margin:0;padding:0 0 10px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1}.uppy-size--md .uppy-Dashboard-files{padding-top:10px}.uppy-Dashboard-dropFilesHereHint{display:flex;align-items:center;justify-content:center;visibility:hidden;position:absolute;top:7px;right:7px;bottom:7px;left:7px;padding-top:90px;border:1px dashed #2275d7;border-radius:3px;z-index:2000;text-align:center;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 11-1.414 1.414L25 16.414V34a1 1 0 11-2 0V16.414l-5.293 5.293a.999.999 0 11-1.414-1.414l7-7a.999.999 0 011.414 0l7 7z' fill='%232275D7'/%3E%3C/svg%3E\");background-position:50% 50%;background-repeat:no-repeat;color:#757575;font-size:16px}[data-uppy-theme=dark] .uppy-Dashboard-dropFilesHereHint{color:#bbb;border-color:#02baf2;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 11-1.414 1.414L25 16.414V34a1 1 0 11-2 0V16.414l-5.293 5.293a.999.999 0 11-1.414-1.414l7-7a.999.999 0 011.414 0l7 7z' fill='%2302BAF2'/%3E%3C/svg%3E\")}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-dropFilesHereHint{visibility:visible}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-files,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-progressindicators,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-serviceMsg,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-DashboardContent-bar{opacity:.15}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-AddFiles{opacity:.03}.uppy-Dashboard-AddFiles-title{font-size:17px;line-height:1.35;font-weight:500;color:#000;margin-top:15px;margin-bottom:5px;text-align:inline-start;padding:0 15px;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-title{font-size:25px;margin-top:5px;font-weight:400;text-align:center;max-width:480px}[data-uppy-num-acquirers=\"0\"] .uppy-Dashboard-AddFiles-title{text-align:center}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles-title{color:#eaeaea}.uppy-Dashboard-AddFiles-title button{font-weight:500}.uppy-size--md .uppy-Dashboard-AddFiles-title button{font-weight:400}.uppy-Dashboard-note{font-size:14px;line-height:1.25;text-align:center;color:#757575;max-width:350px;margin:auto;padding:0 15px}.uppy-size--md .uppy-Dashboard-note{font-size:15px;line-height:1.35;max-width:600px}[data-uppy-theme=dark] .uppy-Dashboard-note{color:#cfcfcf}a.uppy-Dashboard-poweredBy{display:inline-block;text-align:center;font-size:11px;color:#939393;text-decoration:none;margin-top:8px}.uppy-Dashboard-poweredByIcon{stroke:#939393;fill:none;margin-left:1px;margin-right:1px;position:relative;top:1px;opacity:.9;vertical-align:text-top}.uppy-Dashboard-Item-previewIcon{width:25px;height:25px;z-index:100;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.uppy-size--md .uppy-Dashboard-Item-previewIcon{width:38px;height:38px}.uppy-Dashboard-Item-previewIcon svg{width:100%;height:100%}.uppy-Dashboard-Item-previewIconWrap{height:76px;max-height:75%;position:relative}.uppy-Dashboard-Item-previewIconBg{width:100%;height:100%;filter:drop-shadow(rgba(0,0,0,.1) 0 1px 1px)}.uppy-Dashboard-upload{position:relative;width:50px;height:50px}.uppy-size--md .uppy-Dashboard-upload{width:60px;height:60px}.uppy-Dashboard-upload .uppy-c-icon{position:relative;top:1px;width:50%}[dir=ltr] .uppy-Dashboard-uploadCount{right:-12px}[dir=rtl] .uppy-Dashboard-uploadCount{left:-12px}.uppy-Dashboard-uploadCount{position:absolute;top:-12px;background-color:#1bb240;color:#fff;border-radius:50%;width:16px;height:16px;line-height:16px;font-size:8px}.uppy-size--md .uppy-Dashboard-uploadCount{width:18px;height:18px;line-height:18px;font-size:9px}\n"], components: [{ type: i1$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: CreateFolderModalComponent, selector: "abp-create-folder-modal", inputs: ["parentId"] }], directives: [{ type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementButtonsComponent, decorators: [{
1253
- type: Component,
1254
- args: [{
1255
- selector: 'abp-file-management-buttons',
1256
- templateUrl: './file-management-buttons.component.html',
1257
- changeDetection: ChangeDetectionStrategy.OnPush,
1258
- styleUrls: [
1259
- '../../../../../../node_modules/@uppy/core/dist/style.min.css',
1260
- '../../../../../../node_modules/@uppy/dashboard/dist/style.min.css',
1261
- ],
1262
- encapsulation: ViewEncapsulation.None,
1263
- }]
1264
- }], ctorParameters: function () { return [{ type: UploadService }]; } });
1265
-
1266
- class FileManagementDirectoryTreeComponent {
1267
- constructor(service, navigator, move, cdr, deleteService, subscription) {
1268
- this.service = service;
1269
- this.navigator = navigator;
1270
- this.move = move;
1271
- this.cdr = cdr;
1272
- this.deleteService = deleteService;
1273
- this.subscription = subscription;
1274
- this.createPolicy = "FileManagement.DirectoryDescriptor.Create" /* DirectoryDescriptorCreate */;
1275
- this.updatePolicy = "FileManagement.DirectoryDescriptor.Update" /* DirectoryDescriptorUpdate */;
1276
- this.deletePolicy = "FileManagement.DirectoryDescriptor.Delete" /* DirectoryDescriptorDelete */;
1277
- this.contextMenuPolicy = `${this.createPolicy} || ${this.updatePolicy} || ${this.deletePolicy}`;
1278
- this.createModalVisible = false;
1279
- this.createModalParentId = '';
1280
- this.renameModalVisible = false;
1281
- this.moveModalVisible = false;
1282
- this.rootId = ROOT_ID;
1283
- this.updateDirectories = (directories) => {
1284
- this.directories = directories;
1285
- this.cdr.markForCheck();
1286
- };
1287
- }
1288
- ngOnInit() {
1289
- this.subscription.addOne(this.service.directoryTree$, this.updateDirectories);
1290
- }
1291
- onDrop({ dragNode, node }) {
1292
- this.move
1293
- .moveTo(this.nzNodeToFolderInfo(dragNode), this.nzNodeToFolderInfo(node), dragNode.parentNode.origin.id)
1294
- .subscribe();
1295
- }
1296
- onNodeClick(node) {
1297
- if (node.isRoot) {
1298
- this.onRootClick();
1299
- }
1300
- else {
1301
- this.navigator.goToFolder(node);
1302
- }
1303
- }
1304
- onRootClick() {
1305
- this.navigator.goToRoot();
1306
- }
1307
- onCreate(folder) {
1308
- this.createModalVisible = true;
1309
- this.createModalParentId = folder.id;
1310
- }
1311
- onRename(folder) {
1312
- this.renameModalVisible = true;
1313
- this.contentToRename = Object.assign(Object.assign({}, folder), { isDirectory: true });
1314
- }
1315
- onDelete(folder) {
1316
- this.deleteService.deleteFolder(folder).subscribe();
1317
- }
1318
- onMove(folder) {
1319
- this.folderToMove = Object.assign(Object.assign({}, folder.origin.entity), { isDirectory: true });
1320
- this.parentOfFolderToMove = folder.parentNode.origin.id;
1321
- this.moveModalVisible = true;
1322
- }
1323
- afterFolderMoved() {
1324
- delete this.folderToMove;
1325
- }
1326
- nzNodeToFolderInfo(node) {
1327
- return {
1328
- id: node.origin.id,
1329
- name: node.origin.title,
1330
- };
1331
- }
1332
- }
1333
- FileManagementDirectoryTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementDirectoryTreeComponent, deps: [{ token: DirectoryTreeService }, { token: NavigatorService }, { token: MoveService }, { token: i0.ChangeDetectorRef }, { token: DeleteService }, { token: i1.SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
1334
- FileManagementDirectoryTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementDirectoryTreeComponent, selector: "abp-file-management-directory-tree", providers: [SubscriptionService], ngImport: i0, template: "<div>\r\n <ng-container *ngIf=\"directories\">\r\n <abp-tree\r\n [(nodes)]=\"directories\"\r\n [(expandedKeys)]=\"service.extendedKeys\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n (selectedNodeChange)=\"onNodeClick($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node>\r\n <i\r\n class=\"far\"\r\n style=\"line-height: 30px\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n aria-hidden=\"true\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abp-tree-node-template let-node\r\n ><i class=\"fa fa-folder text-primary me-2\" aria-hidden=\"true\"></i\r\n ><ng-container *ngIf=\"node.origin.entity.isRoot; else leafNode\">\r\n {{ \"FileManagement::AllFiles\" | abpLocalization }}\r\n </ng-container>\r\n <ng-template #leafNode>{{ node.title }}</ng-template></ng-template\r\n >\r\n\r\n <ng-container *abpPermission=\"contextMenuPolicy\">\r\n <ng-template #menu let-node>\r\n <li\r\n *abpPermission=\"createPolicy\"\r\n class=\"pointer\"\r\n ngbDropdownItem\r\n (click)=\"onCreate(node.origin.entity)\"\r\n >\r\n {{ \"FileManagement::CreateFolder\" | abpLocalization }}\r\n </li>\r\n <ng-container *ngIf=\"node.origin.entity.id !== rootId\">\r\n <li\r\n *abpPermission=\"updatePolicy\"\r\n class=\"pointer\"\r\n ngbDropdownItem\r\n (click)=\"onRename(node.origin.entity)\"\r\n >\r\n {{ \"FileManagement::Rename\" | abpLocalization }}\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"node.origin.entity.id !== rootId\">\r\n <li\r\n *abpPermission=\"updatePolicy\"\r\n class=\"pointer\"\r\n ngbDropdownItem\r\n (click)=\"onMove(node)\"\r\n >\r\n {{ \"FileManagement::Move\" | abpLocalization }}\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"node.origin.entity.id !== rootId\">\r\n <li\r\n *abpPermission=\"deletePolicy\"\r\n class=\"pointer\"\r\n ngbDropdownItem\r\n (click)=\"onDelete(node.origin.entity)\"\r\n >\r\n {{ \"FileManagement::Delete\" | abpLocalization }}\r\n </li>\r\n </ng-container>\r\n </ng-template>\r\n </ng-container>\r\n </abp-tree>\r\n </ng-container>\r\n</div>\r\n\r\n<abp-create-folder-modal\r\n [(visible)]=\"createModalVisible\"\r\n [parentId]=\"createModalParentId\"\r\n></abp-create-folder-modal>\r\n\r\n<abp-rename-modal\r\n [(visible)]=\"renameModalVisible\"\r\n [(contentToRename)]=\"contentToRename\"\r\n></abp-rename-modal>\r\n\r\n<abp-move-file-modal\r\n [(visible)]=\"moveModalVisible\"\r\n (contentSaved)=\"afterFolderMoved()\"\r\n [fileToMove]=\"folderToMove\"\r\n [oldParentId]=\"parentOfFolderToMove\"\r\n>\r\n</abp-move-file-modal>\r\n", components: [{ type: i6.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver"] }, { type: CreateFolderModalComponent, selector: "abp-create-folder-modal", inputs: ["parentId"] }, { type: RenameModalComponent, selector: "abp-rename-modal", inputs: ["contentToRename"], outputs: ["contentToRenameChange"] }, { type: MoveFileModalComponent, selector: "abp-move-file-modal", inputs: ["fileToMove", "oldParentId"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ExpandedIconTemplateDirective, selector: "[abpTreeExpandedIconTemplate],[abp-tree-expanded-icon-template]" }, { type: i6.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission"] }, { type: i11.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementDirectoryTreeComponent, decorators: [{
1336
- type: Component,
1337
- args: [{
1338
- selector: 'abp-file-management-directory-tree',
1339
- templateUrl: './file-management-directory-tree.component.html',
1340
- changeDetection: ChangeDetectionStrategy.OnPush,
1341
- providers: [SubscriptionService],
1342
- }]
1343
- }], ctorParameters: function () { return [{ type: DirectoryTreeService }, { type: NavigatorService }, { type: MoveService }, { type: i0.ChangeDetectorRef }, { type: DeleteService }, { type: i1.SubscriptionService }]; } });
1344
-
1345
- class FileManagementFolderFilterComponent {
1346
- constructor(list, navigator) {
1347
- this.list = list;
1348
- this.navigator = navigator;
1349
- }
1350
- ngOnInit() { }
1351
- goUpFolder() {
1352
- this.navigator.goUpFolder();
1353
- }
1354
- search() {
1355
- this.list.get();
1356
- }
1357
- }
1358
- FileManagementFolderFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementFolderFilterComponent, deps: [{ token: i1.ListService }, { token: NavigatorService }], target: i0.ɵɵFactoryTarget.Component });
1359
- FileManagementFolderFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementFolderFilterComponent, selector: "abp-file-management-folder-filter", ngImport: i0, template: "<div class=\"row mb-3\">\r\n <div class=\"col-sm-12 col-md-auto col-lg-auto col-xl-auto\">\r\n <abp-button\r\n (click)=\"goUpFolder()\"\r\n iconClass=\"fa fa-level-up-alt fa-flip-horizontal me-2\"\r\n buttonClass=\"mb-2 mb-md-0 shadow-none btn-block btn btn-outline-secondary\"\r\n >{{ \"FileManagement::GoUpFolder\" | abpLocalization }}</abp-button\r\n >\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"input-group\">\r\n <input\r\n class=\"form-control page-search-filter-text\"\r\n [(ngModel)]=\"list.filter\"\r\n [placeholder]=\"'FileManagement::Filter' | abpLocalization\"\r\n />\r\n <div class=\"input-group-append\">\r\n <abp-button (abpClick)=\"search()\" iconClass=\"fa fa-search\"></abp-button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", components: [{ type: i1$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementFolderFilterComponent, decorators: [{
1361
- type: Component,
1362
- args: [{
1363
- selector: 'abp-file-management-folder-filter',
1364
- templateUrl: './file-management-folder-filter.component.html',
1365
- changeDetection: ChangeDetectionStrategy.OnPush,
1366
- }]
1367
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: NavigatorService }]; } });
1368
-
1369
- class FileManagementFolderPanelComponent {
1370
- constructor(navigator) {
1371
- this.navigator = navigator;
1372
- this.contentUpdate = new EventEmitter();
1373
- }
1374
- }
1375
- FileManagementFolderPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementFolderPanelComponent, deps: [{ token: NavigatorService }], target: i0.ɵɵFactoryTarget.Component });
1376
- FileManagementFolderPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementFolderPanelComponent, selector: "abp-file-management-folder-panel", outputs: { contentUpdate: "contentUpdate" }, providers: [ListService], ngImport: i0, template: "<div class=\"row mb-3\">\r\n <div class=\"col\">\r\n <abp-file-management-breadcrumb\r\n [navigatedFolders]=\"navigator.navigatedFolderPath$ | async\"\r\n (breadcrumbClick)=\"navigator.goToFolder($event)\"\r\n ></abp-file-management-breadcrumb>\r\n </div>\r\n</div>\r\n\r\n<abp-file-management-folder-filter></abp-file-management-folder-filter>\r\n<abp-file-management-folder-content\r\n (contentUpdate)=\"contentUpdate.emit($event)\"\r\n></abp-file-management-folder-content>\r\n", components: [{ type: FileManagementBreadcrumbComponent, selector: "abp-file-management-breadcrumb", inputs: ["rootBreadcrumbName", "navigatedFolders"], outputs: ["breadcrumbClick"] }, { type: FileManagementFolderFilterComponent, selector: "abp-file-management-folder-filter" }, { type: FileManagementFolderContentComponent, selector: "abp-file-management-folder-content", outputs: ["contentUpdate"] }], pipes: { "async": i10.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1377
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementFolderPanelComponent, decorators: [{
1378
- type: Component,
1379
- args: [{
1380
- selector: 'abp-file-management-folder-panel',
1381
- templateUrl: './file-management-folder-panel.component.html',
1382
- changeDetection: ChangeDetectionStrategy.OnPush,
1383
- providers: [ListService],
1384
- }]
1385
- }], ctorParameters: function () { return [{ type: NavigatorService }]; }, propDecorators: { contentUpdate: [{
1386
- type: Output
1387
- }] } });
1388
-
1389
- class FileManagementComponent {
1390
- constructor(updateStream) {
1391
- this.updateStream = updateStream;
1392
- this.currentContent = [];
1393
- }
1394
- ngOnInit() {
1395
- this.updateStream.patchStore({
1396
- currentDirectory: null,
1397
- });
1398
- }
1399
- }
1400
- FileManagementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementComponent, deps: [{ token: UpdateStreamService }], target: i0.ɵɵFactoryTarget.Component });
1401
- FileManagementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: FileManagementComponent, selector: "abp-file-management", providers: [
1402
- DeleteService,
1403
- DownloadService,
1404
- DirectoryTreeService,
1405
- NavigatorService,
1406
- MoveService,
1407
- UploadService,
1408
- UpdateStreamService,
1409
- {
1410
- provide: EXTENSIONS_IDENTIFIER,
1411
- useValue: "FileManagement.FolderContentComponent" /* FolderContent */,
1412
- },
1413
- ], ngImport: i0, template: "<abp-page\r\n [title]=\"'FileManagement::Menu:FileManagement' | abpLocalization\"\r\n [toolbar]=\"currentContent\"\r\n>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-md-4 col-lg-3 col\">\r\n <div class=\"p-lg-3 p-md-0 mb-4\">\r\n <abp-file-management-buttons></abp-file-management-buttons>\r\n <abp-file-management-directory-tree></abp-file-management-directory-tree>\r\n </div>\r\n </div>\r\n <div class=\"col-md-8 col-lg-9 col\">\r\n <div class=\"p-lg-3 p-md-0\">\r\n <abp-file-management-folder-panel\r\n (contentUpdate)=\"currentContent = $event\"\r\n ></abp-file-management-folder-panel>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n", components: [{ type: i2$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: FileManagementButtonsComponent, selector: "abp-file-management-buttons" }, { type: FileManagementDirectoryTreeComponent, selector: "abp-file-management-directory-tree" }, { type: FileManagementFolderPanelComponent, selector: "abp-file-management-folder-panel", outputs: ["contentUpdate"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementComponent, decorators: [{
1415
- type: Component,
1416
- args: [{
1417
- selector: 'abp-file-management',
1418
- templateUrl: './file-management.component.html',
1419
- changeDetection: ChangeDetectionStrategy.OnPush,
1420
- providers: [
1421
- DeleteService,
1422
- DownloadService,
1423
- DirectoryTreeService,
1424
- NavigatorService,
1425
- MoveService,
1426
- UploadService,
1427
- UpdateStreamService,
1428
- {
1429
- provide: EXTENSIONS_IDENTIFIER,
1430
- useValue: "FileManagement.FolderContentComponent" /* FolderContent */,
1431
- },
1432
- ],
1433
- }]
1434
- }], ctorParameters: function () { return [{ type: UpdateStreamService }]; } });
1435
-
1436
- class FileManagementInitializer {
1437
- constructor(injector) {
1438
- this.injector = injector;
1439
- }
1440
- canActivate() {
1441
- const extensions = this.injector.get(ExtensionsService);
1442
- const actionContributors = this.injector.get(FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, null) || {};
1443
- const toolbarContributors = this.injector.get(FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, null) ||
1444
- {};
1445
- const propContributors = this.injector.get(FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, null) || {};
1446
- const configStateService = this.injector.get(ConfigStateService);
1447
- return getObjectExtensionEntitiesFromStore(configStateService, 'FileManagement').pipe(map((entities) => ({
1448
- /**
1449
- * TODO: uncomment following statement with correct entity name
1450
- * Following statement is commented out on 02 Sept 2020
1451
- * It
1452
- */
1453
- // [eFileManagementComponents.FolderContent]: entities.DirectoryContentDto,
1454
- })), mapEntitiesToContributors(configStateService, 'FileManagement'), tap((objectExtensionContributors) => {
1455
- mergeWithDefaultActions(extensions.entityActions, DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS, actionContributors);
1456
- mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_FILE_MANAGEMENT_TOOLBAR_ACTIONS, toolbarContributors);
1457
- mergeWithDefaultProps(extensions.entityProps, DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
1458
- }), mapTo(true));
1459
- }
1460
- }
1461
- FileManagementInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1462
- FileManagementInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementInitializer });
1463
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementInitializer, decorators: [{
1464
- type: Injectable
1465
- }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
1466
-
1467
- class FileManagementGuard {
1468
- constructor(fileManagementFeatures) {
1469
- this.fileManagementFeatures = fileManagementFeatures;
1470
- }
1471
- canActivate() {
1472
- return this.fileManagementFeatures.pipe(map((features) => features.enable));
1473
- }
1474
- }
1475
- FileManagementGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementGuard, deps: [{ token: FILE_MANAGEMENT_FEATURES }], target: i0.ɵɵFactoryTarget.Injectable });
1476
- FileManagementGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementGuard });
1477
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementGuard, decorators: [{
1478
- type: Injectable
1479
- }], ctorParameters: function () { return [{ type: i1$3.Observable, decorators: [{
1480
- type: Inject,
1481
- args: [FILE_MANAGEMENT_FEATURES]
1482
- }] }]; } });
1483
-
1484
- const routes = [
1485
- {
1486
- path: '',
1487
- pathMatch: 'full',
1488
- canActivate: [
1489
- AuthGuard,
1490
- PermissionGuard,
1491
- FileManagementInitializer,
1492
- FileManagementGuard,
1493
- ],
1494
- component: FileManagementComponent,
1495
- },
1496
- ];
1497
- class FileManagementRoutingModule {
1498
- }
1499
- FileManagementRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1500
- FileManagementRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementRoutingModule, imports: [i1$4.RouterModule], exports: [RouterModule] });
1501
- FileManagementRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
1502
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementRoutingModule, decorators: [{
1503
- type: NgModule,
1504
- args: [{
1505
- imports: [RouterModule.forChild(routes)],
1506
- exports: [RouterModule],
1507
- }]
1508
- }] });
1509
-
1510
- const exportedComponents = [
1511
- FileManagementComponent,
1512
- FileManagementDirectoryTreeComponent,
1513
- FileManagementButtonsComponent,
1514
- FileManagementBreadcrumbComponent,
1515
- FileManagementFolderContentComponent,
1516
- FileManagementFolderFilterComponent,
1517
- FileManagementFolderPanelComponent,
1518
- ];
1519
- const modals = [
1520
- RenameModalComponent,
1521
- CreateFolderModalComponent,
1522
- BaseModalComponent,
1523
- MoveFileModalComponent,
1524
- ];
1525
- class FileManagementModule {
1526
- static forChild(options = {}) {
1527
- return {
1528
- ngModule: FileManagementModule,
1529
- providers: [
1530
- {
1531
- provide: FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS,
1532
- useValue: options.entityActionContributors,
1533
- },
1534
- {
1535
- provide: FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS,
1536
- useValue: options.toolbarActionContributors,
1537
- },
1538
- {
1539
- provide: FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS,
1540
- useValue: options.entityPropContributors,
1541
- },
1542
- {
1543
- provide: FILE_MANAGEMENT_XSRF_HEADER_NAME,
1544
- useValue: options.xsrfHeaderName || 'RequestVerificationToken',
1545
- },
1546
- FileManagementInitializer,
1547
- FileManagementGuard,
1548
- ],
1549
- };
1550
- }
1551
- static forLazy(options = {}) {
1552
- return new LazyModuleFactory(FileManagementModule.forChild(options));
1553
- }
1554
- }
1555
- FileManagementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1556
- FileManagementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementModule, declarations: [FileManagementComponent,
1557
- FileManagementDirectoryTreeComponent,
1558
- FileManagementButtonsComponent,
1559
- FileManagementBreadcrumbComponent,
1560
- FileManagementFolderContentComponent,
1561
- FileManagementFolderFilterComponent,
1562
- FileManagementFolderPanelComponent, RenameModalComponent,
1563
- CreateFolderModalComponent,
1564
- BaseModalComponent,
1565
- MoveFileModalComponent], imports: [CoreModule,
1566
- ThemeSharedModule,
1567
- TreeModule,
1568
- FileManagementRoutingModule,
1569
- NgbDropdownModule,
1570
- UiExtensionsModule,
1571
- NgxValidateCoreModule,
1572
- PageModule], exports: [FileManagementComponent,
1573
- FileManagementDirectoryTreeComponent,
1574
- FileManagementButtonsComponent,
1575
- FileManagementBreadcrumbComponent,
1576
- FileManagementFolderContentComponent,
1577
- FileManagementFolderFilterComponent,
1578
- FileManagementFolderPanelComponent] });
1579
- FileManagementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementModule, imports: [[
1580
- CoreModule,
1581
- ThemeSharedModule,
1582
- TreeModule,
1583
- FileManagementRoutingModule,
1584
- NgbDropdownModule,
1585
- UiExtensionsModule,
1586
- NgxValidateCoreModule,
1587
- PageModule,
1588
- ]] });
1589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: FileManagementModule, decorators: [{
1590
- type: NgModule,
1591
- args: [{
1592
- declarations: [...exportedComponents, ...modals],
1593
- imports: [
1594
- CoreModule,
1595
- ThemeSharedModule,
1596
- TreeModule,
1597
- FileManagementRoutingModule,
1598
- NgbDropdownModule,
1599
- UiExtensionsModule,
1600
- NgxValidateCoreModule,
1601
- PageModule,
1602
- ],
1603
- exports: [...exportedComponents],
1604
- }]
1605
- }] });
1606
-
1607
- /*
1608
- * Public API Surface of file-management
1609
- */
1610
-
1611
- /**
1612
- * Generated bundle index. Do not edit.
1613
- */
1614
-
1615
- export { BaseModalComponent, CreateFolderModalComponent, CreateFolderModalService, DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_ACTIONS, DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_PROPS, DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS, DEFAULT_FILE_MANAGEMENT_TOOLBAR_ACTIONS, DeleteService, DirectoryTreeService, DownloadService, FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, FILE_MANAGEMENT_XSRF_HEADER_NAME, FileManagementBreadcrumbComponent, FileManagementButtonsComponent, FileManagementComponent, FileManagementDirectoryTreeComponent, FileManagementFolderContentComponent, FileManagementFolderFilterComponent, FileManagementFolderPanelComponent, FileManagementInitializer, FileManagementModule, FileManagementRoutingModule, MoveFileModalComponent, MoveFileModalService, MoveService, NavigatorService, ROOT_ID, ROOT_NODE, RenameModalComponent, RenameModalService, UpdateStreamService, UploadService, formatBytes, mapRootIdToEmpty, transformDirectoryContentSize };
1616
- //# sourceMappingURL=volo-abp.ng.file-management.js.map