@firestitch/list 18.0.36 → 18.0.38

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 (74) hide show
  1. package/app/components/body/body.component.d.ts +1 -1
  2. package/app/components/body/row/actions/actions.component.d.ts +1 -1
  3. package/app/components/body/row/cell/cell.component.d.ts +1 -1
  4. package/app/components/body/row/inline-action/inline-action.component.d.ts +1 -1
  5. package/app/components/body/row/menu-action/menu-action.component.d.ts +1 -1
  6. package/app/components/body/row/row.component.d.ts +1 -1
  7. package/app/components/customize-cols/customize-cols.component.d.ts +1 -1
  8. package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +1 -1
  9. package/app/components/footer/footer-row/footer-row.component.d.ts +1 -1
  10. package/app/components/footer/footer.component.d.ts +1 -1
  11. package/app/components/head/head-cell/head-cell.component.d.ts +1 -1
  12. package/app/components/head/head.component.d.ts +1 -1
  13. package/app/components/list/list.component.d.ts +1 -1
  14. package/app/components/loader/loader.component.d.ts +1 -1
  15. package/app/components/pagination/pagination.component.d.ts +1 -1
  16. package/app/components/status/status.component.d.ts +1 -1
  17. package/app/directives/cell/cell.directive.d.ts +1 -1
  18. package/app/directives/column/column.directive.d.ts +1 -1
  19. package/app/directives/content/content.directive.d.ts +1 -1
  20. package/app/directives/content-init/content-init.directive.d.ts +1 -1
  21. package/app/directives/draggable-list/draggable-list.directive.d.ts +1 -1
  22. package/app/directives/draggable-row/draggable-row.directive.d.ts +1 -1
  23. package/app/directives/empty-state/empty-state.directive.d.ts +1 -1
  24. package/app/directives/footer/footer.directive.d.ts +1 -1
  25. package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +1 -1
  26. package/app/directives/group-footer/group-footer.directive.d.ts +1 -1
  27. package/app/directives/group-header/group-header.directive.d.ts +1 -1
  28. package/app/directives/header/header.directive.d.ts +1 -1
  29. package/app/directives/heading/heading.directive.d.ts +1 -1
  30. package/app/directives/heading-container/heading-container.directive.d.ts +1 -1
  31. package/app/directives/subheading/subheading.directive.d.ts +1 -1
  32. package/app/fs-list.module.d.ts +23 -40
  33. package/app/pipes/action-label.d.ts +1 -1
  34. package/esm2022/app/components/body/body.component.mjs +9 -6
  35. package/esm2022/app/components/body/row/actions/actions.component.mjs +19 -9
  36. package/esm2022/app/components/body/row/cell/cell.component.mjs +4 -4
  37. package/esm2022/app/components/body/row/inline-action/inline-action.component.mjs +26 -8
  38. package/esm2022/app/components/body/row/menu-action/menu-action.component.mjs +13 -7
  39. package/esm2022/app/components/body/row/row.component.mjs +18 -8
  40. package/esm2022/app/components/customize-cols/customize-cols.component.mjs +17 -8
  41. package/esm2022/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +4 -4
  42. package/esm2022/app/components/footer/footer-row/footer-row.component.mjs +10 -5
  43. package/esm2022/app/components/footer/footer.component.mjs +4 -4
  44. package/esm2022/app/components/head/head-cell/head-cell.component.mjs +12 -5
  45. package/esm2022/app/components/head/head.component.mjs +13 -6
  46. package/esm2022/app/components/list/list.component.mjs +29 -15
  47. package/esm2022/app/components/loader/loader.component.mjs +4 -4
  48. package/esm2022/app/components/pagination/pagination.component.mjs +16 -8
  49. package/esm2022/app/components/status/status.component.mjs +16 -8
  50. package/esm2022/app/directives/cell/cell.directive.mjs +6 -3
  51. package/esm2022/app/directives/column/column.directive.mjs +3 -2
  52. package/esm2022/app/directives/content/content.directive.mjs +3 -2
  53. package/esm2022/app/directives/content-init/content-init.directive.mjs +4 -3
  54. package/esm2022/app/directives/draggable-list/draggable-list.directive.mjs +3 -2
  55. package/esm2022/app/directives/draggable-row/draggable-row.directive.mjs +3 -2
  56. package/esm2022/app/directives/empty-state/empty-state.directive.mjs +3 -2
  57. package/esm2022/app/directives/footer/footer.directive.mjs +6 -3
  58. package/esm2022/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +6 -3
  59. package/esm2022/app/directives/group-footer/group-footer.directive.mjs +4 -3
  60. package/esm2022/app/directives/group-header/group-header.directive.mjs +3 -2
  61. package/esm2022/app/directives/header/header.directive.mjs +6 -3
  62. package/esm2022/app/directives/heading/heading.directive.mjs +4 -3
  63. package/esm2022/app/directives/heading-container/heading-container.directive.mjs +3 -2
  64. package/esm2022/app/directives/subheading/subheading.directive.mjs +3 -2
  65. package/esm2022/app/fs-list.module.mjs +14 -74
  66. package/esm2022/app/pipes/action-label.mjs +6 -3
  67. package/fesm2022/firestitch-list.mjs +500 -513
  68. package/fesm2022/firestitch-list.mjs.map +1 -1
  69. package/package.json +1 -1
  70. package/styles.scss +99 -1
  71. package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +0 -13
  72. package/app/components/saved-filters/saved-filters.component.d.ts +0 -15
  73. package/esm2022/app/components/manage-saved-filters/manage-saved-filters.component.mjs +0 -77
  74. package/esm2022/app/components/saved-filters/saved-filters.component.mjs +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/list",
3
- "version": "18.0.36",
3
+ "version": "18.0.38",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-list"
package/styles.scss CHANGED
@@ -1 +1,99 @@
1
- @import 'styles/_table';
1
+
2
+ @mixin core() {
3
+ ::ng-deep {
4
+ .fs-list-table {
5
+ border-spacing: 0;
6
+ display: table;
7
+ width: 100%;
8
+ border-collapse: collapse;
9
+
10
+ thead {
11
+ display: table-header-group;
12
+
13
+ th {
14
+ color: #999;
15
+ padding: 8px;
16
+ font-weight: normal;
17
+ color: rgba(143, 143, 143, 1);
18
+ font-size: 85%;
19
+ text-align: left;
20
+ }
21
+ }
22
+
23
+ tbody {
24
+ display: table-row-group;
25
+ position: relative;
26
+ }
27
+
28
+ tbody,
29
+ thead,
30
+ tfoot{
31
+ tr{
32
+ display: table-row;
33
+
34
+ td {
35
+ display: table-cell;
36
+ padding: 8px;
37
+ vertical-align: middle;
38
+ outline: none;
39
+ text-align: left;
40
+ }
41
+ }
42
+ }
43
+
44
+ tfoot td {
45
+ padding: 8px;
46
+ }
47
+
48
+ &.style-card {
49
+ tbody {
50
+ tr {
51
+ &:not(.fs-list-row-group-footer):not(.fs-list-row-group) {
52
+ clip-path: xywh(0 3px 100% calc(100% - 6px) round 10px);
53
+ }
54
+
55
+ td {
56
+ border: none !important;
57
+ background-color: #fafafa;
58
+ padding: 8px 16px;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ .fs-list-table.style-line,
66
+ .fs-list-table:not(.style-card):not(.style-basic) {
67
+ tbody {
68
+ td {
69
+ box-sizing: border-box;
70
+ border-top: 1px solid #e7e7e7;
71
+ }
72
+
73
+ tr:first-child td {
74
+ border-color: #c4c4c4;
75
+ }
76
+
77
+ tr:last-child td {
78
+ border-bottom: 1px solid #c4c4c4;
79
+ }
80
+ }
81
+
82
+ .fs-list-container {
83
+ &.has-dragging {
84
+ thead {
85
+ th {
86
+ border-color: #e7e7e7;
87
+ }
88
+ }
89
+
90
+ tbody {
91
+ tr:nth-child(2) td {
92
+ border-top: none;
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlLXNhdmVkLWZpbHRlcnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL21hbmFnZS1zYXZlZC1maWx0ZXJzL21hbmFnZS1zYXZlZC1maWx0ZXJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9tYW5hZ2Utc2F2ZWQtZmlsdGVycy9tYW5hZ2Utc2F2ZWQtZmlsdGVycy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQ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ICAgICAgIC5zdWJzY3JpYmUoKCkgPT4geyB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICByb3dBY3Rpb25zOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0FwcGx5JyxcbiAgICAgICAgICBjbGljazogKGZpbHRlcjogSUZpbHRlclNhdmVkRmlsdGVyKSA9PiB7XG4gICAgICAgICAgICB0aGlzLl9leHRlcm5hbFBhcmFtcy5zZXRBY3RpdmVTYXZlZEZpbHRlcihmaWx0ZXIpO1xuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0RlbGV0ZScsXG4gICAgICAgICAgcmVtb3ZlOiB7XG4gICAgICAgICAgICB0aXRsZTogJ0NvbmZpcm0nLFxuICAgICAgICAgICAgdGVtcGxhdGU6ICdBcmUgeW91IHN1cmUgeW91IHdhbnQgdG8gZGVsZXRlIHRoaXMgZmlsdGVyPycsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBjbGljazogKHNhdmVkRmlsdGVyKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5zYXZlZEZpbHRlcnNDb250cm9sbGVyLmRlbGV0ZShzYXZlZEZpbHRlcik7XG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBmZXRjaDogKHF1ZXJ5KSA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLnNhdmVkRmlsdGVyc0NvbnRyb2xsZXIubG9hZCgpXG4gICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICBtYXAoKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgICAgICAgIHJldHVybiB7IGRhdGE6IHJlc3BvbnNlIH07XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICApO1xuICAgICAgfSxcblxuICAgIH07XG4gIH1cbn1cbiIsIjxoMSBtYXQtZGlhbG9nLXRpdGxlPlxyXG4gIE1hbmFnZSBTYXZlZCBGaWx0ZXJzXHJcbjwvaDE+XHJcbjxkaXYgbWF0LWRpYWxvZy1jb250ZW50PlxyXG4gIDxmcy1saXN0IFtjb25maWddPVwiY29uZmlnXCI+XHJcbiAgICA8ZnMtbGlzdC1jb2x1bW4gbmFtZT1cIm5hbWVcIiB0aXRsZT1cIk5hbWVcIj5cclxuICAgICAgPG5nLXRlbXBsYXRlIGZzLWxpc3QtY2VsbCBsZXQtcm93PVwicm93XCI+XHJcbiAgICAgICAge3sgcm93Lm5hbWUgfX1cclxuICAgICAgPC9uZy10ZW1wbGF0ZT5cclxuICAgIDwvZnMtbGlzdC1jb2x1bW4+XHJcbiAgPC9mcy1saXN0PlxyXG48L2Rpdj5cclxuPGRpdiBtYXQtZGlhbG9nLWFjdGlvbnM+XHJcbiAgPGJ1dHRvbiBtYXQtYnV0dG9uXHJcbiAgICAgICAgICBbbWF0LWRpYWxvZy1jbG9zZV09XCJudWxsXCJcclxuICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgY29sb3I9XCJwcmltYXJ5XCI+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F2ZWQtZmlsdGVycy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvc2F2ZWQtZmlsdGVycy9zYXZlZC1maWx0ZXJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uL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