@firestitch/list 18.0.37 → 18.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/classes/list-controller.d.ts +0 -1
- package/app/components/body/body.component.d.ts +1 -1
- package/app/components/body/row/actions/actions.component.d.ts +1 -1
- package/app/components/body/row/cell/cell.component.d.ts +1 -1
- package/app/components/body/row/inline-action/inline-action.component.d.ts +1 -1
- package/app/components/body/row/menu-action/menu-action.component.d.ts +1 -1
- package/app/components/body/row/row.component.d.ts +1 -1
- package/app/components/customize-cols/customize-cols.component.d.ts +1 -1
- package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +1 -1
- package/app/components/footer/footer-row/footer-row.component.d.ts +1 -1
- package/app/components/footer/footer.component.d.ts +1 -1
- package/app/components/head/head-cell/head-cell.component.d.ts +1 -1
- package/app/components/head/head.component.d.ts +1 -1
- package/app/components/list/list.component.d.ts +1 -1
- package/app/components/loader/loader.component.d.ts +1 -1
- package/app/components/pagination/pagination.component.d.ts +1 -1
- package/app/components/status/status.component.d.ts +1 -1
- package/app/directives/cell/cell.directive.d.ts +1 -1
- package/app/directives/column/column.directive.d.ts +1 -1
- package/app/directives/content/content.directive.d.ts +1 -1
- package/app/directives/content-init/content-init.directive.d.ts +1 -1
- package/app/directives/draggable-list/draggable-list.directive.d.ts +1 -1
- package/app/directives/draggable-row/draggable-row.directive.d.ts +1 -1
- package/app/directives/empty-state/empty-state.directive.d.ts +1 -1
- package/app/directives/footer/footer.directive.d.ts +1 -1
- package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +1 -1
- package/app/directives/group-footer/group-footer.directive.d.ts +1 -1
- package/app/directives/group-header/group-header.directive.d.ts +1 -1
- package/app/directives/header/header.directive.d.ts +1 -1
- package/app/directives/heading/heading.directive.d.ts +1 -1
- package/app/directives/heading-container/heading-container.directive.d.ts +1 -1
- package/app/directives/subheading/subheading.directive.d.ts +1 -1
- package/app/fs-list.module.d.ts +23 -40
- package/app/pipes/action-label.d.ts +1 -1
- package/esm2022/app/classes/list-controller.mjs +8 -9
- package/esm2022/app/components/body/body.component.mjs +9 -6
- package/esm2022/app/components/body/row/actions/actions.component.mjs +19 -9
- package/esm2022/app/components/body/row/cell/cell.component.mjs +4 -4
- package/esm2022/app/components/body/row/inline-action/inline-action.component.mjs +26 -8
- package/esm2022/app/components/body/row/menu-action/menu-action.component.mjs +13 -7
- package/esm2022/app/components/body/row/row.component.mjs +18 -8
- package/esm2022/app/components/customize-cols/customize-cols.component.mjs +17 -8
- package/esm2022/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +4 -4
- package/esm2022/app/components/footer/footer-row/footer-row.component.mjs +10 -5
- package/esm2022/app/components/footer/footer.component.mjs +4 -4
- package/esm2022/app/components/head/head-cell/head-cell.component.mjs +12 -5
- package/esm2022/app/components/head/head.component.mjs +13 -6
- package/esm2022/app/components/list/list.component.mjs +31 -17
- package/esm2022/app/components/loader/loader.component.mjs +4 -4
- package/esm2022/app/components/pagination/pagination.component.mjs +16 -8
- package/esm2022/app/components/status/status.component.mjs +16 -8
- package/esm2022/app/directives/cell/cell.directive.mjs +6 -3
- package/esm2022/app/directives/column/column.directive.mjs +3 -2
- package/esm2022/app/directives/content/content.directive.mjs +3 -2
- package/esm2022/app/directives/content-init/content-init.directive.mjs +4 -3
- package/esm2022/app/directives/draggable-list/draggable-list.directive.mjs +3 -2
- package/esm2022/app/directives/draggable-row/draggable-row.directive.mjs +3 -2
- package/esm2022/app/directives/empty-state/empty-state.directive.mjs +3 -2
- package/esm2022/app/directives/footer/footer.directive.mjs +6 -3
- package/esm2022/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +6 -3
- package/esm2022/app/directives/group-footer/group-footer.directive.mjs +4 -3
- package/esm2022/app/directives/group-header/group-header.directive.mjs +3 -2
- package/esm2022/app/directives/header/header.directive.mjs +6 -3
- package/esm2022/app/directives/heading/heading.directive.mjs +4 -3
- package/esm2022/app/directives/heading-container/heading-container.directive.mjs +3 -2
- package/esm2022/app/directives/subheading/subheading.directive.mjs +3 -2
- package/esm2022/app/fs-list.module.mjs +14 -74
- package/esm2022/app/pipes/action-label.mjs +6 -3
- package/fesm2022/firestitch-list.mjs +509 -523
- package/fesm2022/firestitch-list.mjs.map +1 -1
- package/package.json +1 -1
- package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +0 -13
- package/app/components/saved-filters/saved-filters.component.d.ts +0 -15
- package/esm2022/app/components/manage-saved-filters/manage-saved-filters.component.mjs +0 -77
- package/esm2022/app/components/saved-filters/saved-filters.component.mjs +0 -32
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ExternalParamsController } from '@firestitch/filter';
|
|
2
|
-
import { FsListConfig } from '../../interfaces/listconfig.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsListManageSavedFiltersComponent {
|
|
5
|
-
private _externalParams;
|
|
6
|
-
config: FsListConfig;
|
|
7
|
-
private _reorderReady;
|
|
8
|
-
constructor(_externalParams: ExternalParamsController);
|
|
9
|
-
private get savedFiltersController();
|
|
10
|
-
private _initList;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsListManageSavedFiltersComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsListManageSavedFiltersComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { ExternalParamsController } from '@firestitch/filter';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsListSavedFiltersComponent {
|
|
7
|
-
private _dialog;
|
|
8
|
-
private _externalParams;
|
|
9
|
-
private _vcRef;
|
|
10
|
-
constructor(_dialog: MatDialog, _externalParams: ExternalParamsController, _vcRef: ViewContainerRef);
|
|
11
|
-
get savedFiltersEnabled$(): Observable<boolean>;
|
|
12
|
-
showManageDialog(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsListSavedFiltersComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsListSavedFiltersComponent, "fs-list-saved-filters", never, {}, {}, never, never, false, never>;
|
|
15
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ExternalParamsController, } from '@firestitch/filter';
|
|
3
|
-
import { map, tap } from 'rxjs/operators';
|
|
4
|
-
import { ReorderPosition } from '../../classes/reorder-controller';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@firestitch/filter";
|
|
7
|
-
import * as i2 from "@angular/material/button";
|
|
8
|
-
import * as i3 from "@angular/material/dialog";
|
|
9
|
-
import * as i4 from "../list/list.component";
|
|
10
|
-
import * as i5 from "../../directives/column/column.directive";
|
|
11
|
-
import * as i6 from "../../directives/cell/cell.directive";
|
|
12
|
-
export class FsListManageSavedFiltersComponent {
|
|
13
|
-
_externalParams;
|
|
14
|
-
config;
|
|
15
|
-
_reorderReady = true;
|
|
16
|
-
constructor(_externalParams) {
|
|
17
|
-
this._externalParams = _externalParams;
|
|
18
|
-
this._initList();
|
|
19
|
-
}
|
|
20
|
-
get savedFiltersController() {
|
|
21
|
-
return this._externalParams.savedFiltersController;
|
|
22
|
-
}
|
|
23
|
-
_initList() {
|
|
24
|
-
this.config = {
|
|
25
|
-
status: false,
|
|
26
|
-
queryParam: false,
|
|
27
|
-
persist: false,
|
|
28
|
-
paging: false,
|
|
29
|
-
reorder: {
|
|
30
|
-
position: ReorderPosition.Left,
|
|
31
|
-
moveDrop: () => {
|
|
32
|
-
return this._reorderReady;
|
|
33
|
-
},
|
|
34
|
-
done: (reorderData) => {
|
|
35
|
-
this._reorderReady = false;
|
|
36
|
-
const filterData = reorderData.map((data) => data.data);
|
|
37
|
-
this.savedFiltersController.order(filterData)
|
|
38
|
-
.pipe(tap(() => {
|
|
39
|
-
this._reorderReady = true;
|
|
40
|
-
}))
|
|
41
|
-
.subscribe(() => { });
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
rowActions: [
|
|
45
|
-
{
|
|
46
|
-
label: 'Apply',
|
|
47
|
-
click: (filter) => {
|
|
48
|
-
this._externalParams.setActiveSavedFilter(filter);
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: 'Delete',
|
|
53
|
-
remove: {
|
|
54
|
-
title: 'Confirm',
|
|
55
|
-
template: 'Are you sure you want to delete this filter?',
|
|
56
|
-
},
|
|
57
|
-
click: (savedFilter) => {
|
|
58
|
-
return this.savedFiltersController.delete(savedFilter);
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
fetch: (query) => {
|
|
63
|
-
return this.savedFiltersController.load()
|
|
64
|
-
.pipe(map((response) => {
|
|
65
|
-
return { data: response };
|
|
66
|
-
}));
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListManageSavedFiltersComponent, deps: [{ token: i1.ExternalParamsController }], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsListManageSavedFiltersComponent, selector: "ng-component", ngImport: i0, template: "<h1 mat-dialog-title>\r\n Manage Saved Filters\r\n</h1>\r\n<div mat-dialog-content>\r\n <fs-list [config]=\"config\">\r\n <fs-list-column name=\"name\" title=\"Name\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ row.name }}\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n</div>\r\n<div mat-dialog-actions>\r\n <button mat-button\r\n [mat-dialog-close]=\"null\"\r\n type=\"button\"\r\n color=\"primary\">\r\n Done\r\n </button>\r\n</div>\r\n", dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i4.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { kind: "directive", type: i5.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customizable", "sortable", "sortableDefault", "sortableDirection", "direction", "align", "width", "class"] }, { kind: "directive", type: i6.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
|
-
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListManageSavedFiltersComponent, decorators: [{
|
|
74
|
-
type: Component,
|
|
75
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<h1 mat-dialog-title>\r\n Manage Saved Filters\r\n</h1>\r\n<div mat-dialog-content>\r\n <fs-list [config]=\"config\">\r\n <fs-list-column name=\"name\" title=\"Name\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ row.name }}\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n</div>\r\n<div mat-dialog-actions>\r\n <button mat-button\r\n [mat-dialog-close]=\"null\"\r\n type=\"button\"\r\n color=\"primary\">\r\n Done\r\n </button>\r\n</div>\r\n" }]
|
|
76
|
-
}], ctorParameters: () => [{ type: i1.ExternalParamsController }] });
|
|
77
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlLXNhdmVkLWZpbHRlcnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL21hbmFnZS1zYXZlZC1maWx0ZXJzL21hbmFnZS1zYXZlZC1maWx0ZXJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9tYW5hZ2Utc2F2ZWQtZmlsdGVycy9tYW5hZ2Utc2F2ZWQtZmlsdGVycy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5FLE9BQU8sRUFDTCx3QkFBd0IsR0FHekIsTUFBTSxvQkFBb0IsQ0FBQztBQUU1QixPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTFDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQzs7Ozs7Ozs7QUFRbkUsTUFBTSxPQUFPLGlDQUFpQztJQU9sQztJQUxILE1BQU0sQ0FBZTtJQUVwQixhQUFhLEdBQUcsSUFBSSxDQUFDO0lBRTdCLFlBQ1UsZUFBeUM7UUFBekMsb0JBQWUsR0FBZixlQUFlLENBQTBCO1FBRWpELElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQztJQUNuQixDQUFDO0lBRUQsSUFBWSxzQkFBc0I7UUFDaEMsT0FBTyxJQUFJLENBQUMsZUFBZS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yZGVyUG9zaXRpb24uTGVmdCxcbiAgICAgICAgbW92ZURyb3A6ICgpID0+IHtcbiAgICAgICAgICByZXR1cm4gdGhpcy5fcmVvcmRlclJlYWR5O1xuICAgICAgICB9LFxuICAgICAgICBkb25lOiAocmVvcmRlckRhdGEpID0+IHtcbiAgICAgICAgICB0aGlzLl9yZW9yZGVyUmVhZHkgPSBmYWxzZTtcblxuICAgICAgICAgIGNvbnN0IGZpbHRlckRhdGEgPSByZW9yZGVyRGF0YS5tYXAoKGRhdGEpID0+IGRhdGEuZGF0YSk7XG4gICAgICAgICAgdGhpcy5zYXZlZEZpbHRlcnNDb250cm9sbGVyLm9yZGVyKGZpbHRlckRhdGEpXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgdGFwKCgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLl9yZW9yZGVyUmVhZHkgPSB0cnVlO1xuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKCkgPT4geyB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICByb3dBY3Rpb25zOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0FwcGx5JyxcbiAgICAgICAgICBjbGljazogKGZpbHRlcjogSUZpbHRlclNhdmVkRmlsdGVyKSA9PiB7XG4gICAgICAgICAgICB0aGlzLl9leHRlcm5hbFBhcmFtcy5zZXRBY3RpdmVTYXZlZEZpbHRlcihmaWx0ZXIpO1xuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0RlbGV0ZScsXG4gICAgICAgICAgcmVtb3ZlOiB7XG4gICAgICAgICAgICB0aXRsZTogJ0NvbmZpcm0nLFxuICAgICAgICAgICAgdGVtcGxhdGU6ICdBcmUgeW91IHN1cmUgeW91IHdhbnQgdG8gZGVsZXRlIHRoaXMgZmlsdGVyPycsXG4gICAgICAgICAgfS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gICAgICAgY29sb3I9XCJwcmltYXJ5XCI+XHJcbiAgICBEb25lXHJcbiAgPC9idXR0b24+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Component, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { ExternalParamsController } from '@firestitch/filter';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/material/dialog";
|
|
6
|
-
import * as i2 from "@firestitch/filter";
|
|
7
|
-
import * as i3 from "@angular/common";
|
|
8
|
-
export class FsListSavedFiltersComponent {
|
|
9
|
-
_dialog;
|
|
10
|
-
_externalParams;
|
|
11
|
-
_vcRef;
|
|
12
|
-
constructor(_dialog, _externalParams, _vcRef) {
|
|
13
|
-
this._dialog = _dialog;
|
|
14
|
-
this._externalParams = _externalParams;
|
|
15
|
-
this._vcRef = _vcRef;
|
|
16
|
-
}
|
|
17
|
-
get savedFiltersEnabled$() {
|
|
18
|
-
return this._externalParams.savedFiltersController.enabled$;
|
|
19
|
-
}
|
|
20
|
-
showManageDialog() {
|
|
21
|
-
// this._dialog.open(FsListManageSavedFiltersComponent, {
|
|
22
|
-
// viewContainerRef: this._vcRef,
|
|
23
|
-
// });
|
|
24
|
-
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListSavedFiltersComponent, deps: [{ token: i1.MatDialog }, { token: i2.ExternalParamsController }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsListSavedFiltersComponent, selector: "fs-list-saved-filters", ngImport: i0, template: "<ng-container *ngIf=\"savedFiltersEnabled$ | async\"><!--\r\n -->, saved filter\r\n <fs-filter-saved-filters-menu (manage)=\"showManageDialog()\"></fs-filter-saved-filters-menu>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FsSavedFiltersMenuComponent, selector: "fs-filter-saved-filters-menu", outputs: ["clear"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] });
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListSavedFiltersComponent, decorators: [{
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{ selector: 'fs-list-saved-filters', template: "<ng-container *ngIf=\"savedFiltersEnabled$ | async\"><!--\r\n -->, saved filter\r\n <fs-filter-saved-filters-menu (manage)=\"showManageDialog()\"></fs-filter-saved-filters-menu>\r\n</ng-container>\r\n" }]
|
|
31
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }, { type: i2.ExternalParamsController }, { type: i0.ViewContainerRef }] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F2ZWQtZmlsdGVycy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvc2F2ZWQtZmlsdGVycy9zYXZlZC1maWx0ZXJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9zYXZlZC1maWx0ZXJzL3NhdmVkLWZpbHRlcnMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUU1RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFckQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0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