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