@coreui/angular 2.13.2 → 2.14.1
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/README.md +215 -84
- package/esm2020/coreui-angular.mjs +5 -5
- package/esm2020/lib/aside/app-aside.component.mjs +58 -58
- package/esm2020/lib/aside/app-aside.module.mjs +28 -30
- package/esm2020/lib/aside/index.mjs +2 -2
- package/esm2020/lib/aside/public_api.mjs +3 -3
- package/esm2020/lib/breadcrumb/app-breadcrumb.component.mjs +62 -62
- package/esm2020/lib/breadcrumb/app-breadcrumb.module.mjs +31 -31
- package/esm2020/lib/breadcrumb/app-breadcrumb.service.mjs +46 -46
- package/esm2020/lib/breadcrumb/cui-breadcrumb.component.mjs +38 -38
- package/esm2020/lib/breadcrumb/index.mjs +2 -2
- package/esm2020/lib/breadcrumb/public_api.mjs +4 -4
- package/esm2020/lib/footer/app-footer.component.mjs +40 -40
- package/esm2020/lib/footer/app-footer.module.mjs +18 -18
- package/esm2020/lib/footer/index.mjs +2 -2
- package/esm2020/lib/footer/public_api.mjs +3 -3
- package/esm2020/lib/header/app-header.component.mjs +97 -97
- package/esm2020/lib/header/app-header.module.mjs +32 -34
- package/esm2020/lib/header/index.mjs +2 -2
- package/esm2020/lib/header/public_api.mjs +3 -3
- package/esm2020/lib/shared/classes.mjs +15 -15
- package/esm2020/lib/shared/index.mjs +2 -2
- package/esm2020/lib/shared/layout/layout.directive.mjs +233 -233
- package/esm2020/lib/shared/layout/layout.module.mjs +54 -56
- package/esm2020/lib/shared/public_api.mjs +5 -5
- package/esm2020/lib/shared/replace.mjs +12 -12
- package/esm2020/lib/shared/toggle-classes.mjs +46 -46
- package/esm2020/lib/sidebar/app-sidebar-footer.component.mjs +20 -20
- package/esm2020/lib/sidebar/app-sidebar-form.component.mjs +20 -20
- package/esm2020/lib/sidebar/app-sidebar-header.component.mjs +20 -20
- package/esm2020/lib/sidebar/app-sidebar-minimizer.component.mjs +35 -35
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.mjs +22 -22
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.mjs +18 -18
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.mjs +21 -21
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.mjs +31 -31
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.mjs +173 -181
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.mjs +44 -44
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.mjs +97 -97
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.mjs +21 -21
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.mjs +67 -67
- package/esm2020/lib/sidebar/app-sidebar-nav.component.mjs +33 -33
- package/esm2020/lib/sidebar/app-sidebar-nav.directive.mjs +42 -42
- package/esm2020/lib/sidebar/app-sidebar-nav.mjs +2 -2
- package/esm2020/lib/sidebar/app-sidebar-nav.service.mjs +53 -53
- package/esm2020/lib/sidebar/app-sidebar.component.mjs +112 -112
- package/esm2020/lib/sidebar/app-sidebar.module.mjs +117 -119
- package/esm2020/lib/sidebar/app-sidebar.service.mjs +21 -21
- package/esm2020/lib/sidebar/index.mjs +2 -2
- package/esm2020/lib/sidebar/public_api.mjs +16 -16
- package/esm2020/public-api.mjs +11 -11
- package/fesm2015/coreui-angular.mjs +1583 -1599
- package/fesm2015/coreui-angular.mjs.map +1 -1
- package/fesm2020/coreui-angular.mjs +1558 -1574
- package/fesm2020/coreui-angular.mjs.map +1 -1
- package/{coreui-angular.d.ts → index.d.ts} +5 -5
- package/lib/aside/app-aside.component.d.ts +19 -19
- package/lib/aside/app-aside.module.d.ts +9 -9
- package/lib/aside/index.d.ts +1 -1
- package/lib/aside/public_api.d.ts +2 -2
- package/lib/breadcrumb/app-breadcrumb.component.d.ts +19 -19
- package/lib/breadcrumb/app-breadcrumb.module.d.ts +12 -12
- package/lib/breadcrumb/app-breadcrumb.service.d.ts +12 -12
- package/lib/breadcrumb/cui-breadcrumb.component.d.ts +18 -18
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/public_api.d.ts +3 -3
- package/lib/footer/app-footer.component.d.ts +15 -15
- package/lib/footer/app-footer.module.d.ts +8 -8
- package/lib/footer/index.d.ts +1 -1
- package/lib/footer/public_api.d.ts +2 -2
- package/lib/header/app-header.component.d.ts +34 -34
- package/lib/header/app-header.module.d.ts +10 -10
- package/lib/header/index.d.ts +1 -1
- package/lib/header/public_api.d.ts +2 -2
- package/lib/shared/classes.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/layout/layout.directive.d.ts +78 -78
- package/lib/shared/layout/layout.module.d.ts +8 -8
- package/lib/shared/public_api.d.ts +4 -4
- package/lib/shared/replace.d.ts +1 -1
- package/lib/shared/toggle-classes.d.ts +12 -12
- package/lib/sidebar/app-sidebar-footer.component.d.ts +7 -7
- package/lib/sidebar/app-sidebar-form.component.d.ts +7 -7
- package/lib/sidebar/app-sidebar-header.component.d.ts +7 -7
- package/lib/sidebar/app-sidebar-minimizer.component.d.ts +11 -11
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.d.ts +7 -7
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.d.ts +10 -10
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.d.ts +7 -7
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.d.ts +10 -10
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.d.ts +25 -25
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.d.ts +19 -19
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.d.ts +36 -36
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.d.ts +7 -7
- package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.d.ts +16 -16
- package/lib/sidebar/app-sidebar-nav.component.d.ts +15 -15
- package/lib/sidebar/app-sidebar-nav.d.ts +50 -50
- package/lib/sidebar/app-sidebar-nav.directive.d.ts +19 -19
- package/lib/sidebar/app-sidebar-nav.service.d.ts +21 -21
- package/lib/sidebar/app-sidebar.component.d.ts +33 -33
- package/lib/sidebar/app-sidebar.module.d.ts +25 -25
- package/lib/sidebar/app-sidebar.service.d.ts +12 -12
- package/lib/sidebar/index.d.ts +1 -1
- package/lib/sidebar/public_api.d.ts +9 -9
- package/package.json +7 -7
- package/public-api.d.ts +5 -5
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class AppSidebarNavIconPipe {
|
|
4
|
-
transform(item, args) {
|
|
5
|
-
const classes = {
|
|
6
|
-
'nav-icon': true
|
|
7
|
-
};
|
|
8
|
-
const icon = item.icon;
|
|
9
|
-
classes[icon] = !!item.icon;
|
|
10
|
-
return classes;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
AppSidebarNavIconPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
AppSidebarNavIconPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
-
type: Pipe,
|
|
17
|
-
args: [{
|
|
18
|
-
name: 'appSidebarNavIcon'
|
|
19
|
-
}]
|
|
20
|
-
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class AppSidebarNavIconPipe {
|
|
4
|
+
transform(item, args) {
|
|
5
|
+
const classes = {
|
|
6
|
+
'nav-icon': true
|
|
7
|
+
};
|
|
8
|
+
const icon = item.icon;
|
|
9
|
+
classes[icon] = !!item.icon;
|
|
10
|
+
return classes;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
AppSidebarNavIconPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavIconPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
+
AppSidebarNavIconPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavIconPipe, name: "appSidebarNavIcon" });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavIconPipe, decorators: [{
|
|
16
|
+
type: Pipe,
|
|
17
|
+
args: [{
|
|
18
|
+
name: 'appSidebarNavIcon'
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLXNpZGViYXItbmF2LWljb24ucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmV1aS1hbmd1bGFyL3NyYy9saWIvc2lkZWJhci9hcHAtc2lkZWJhci1uYXYvYXBwLXNpZGViYXItbmF2LWljb24ucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFLcEQsTUFBTSxPQUFPLHFCQUFxQjtJQUVoQyxTQUFTLENBQUMsSUFBUyxFQUFFLElBQVU7UUFDN0IsTUFBTSxPQUFPLEdBQVE7WUFDbkIsVUFBVSxFQUFFLElBQUk7U0FDakIsQ0FBQztRQUNGLE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDdkIsT0FBTyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQzVCLE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUM7O2tIQVRVLHFCQUFxQjtnSEFBckIscUJBQXFCOzJGQUFyQixxQkFBcUI7a0JBSGpDLElBQUk7bUJBQUM7b0JBQ0osSUFBSSxFQUFFLG1CQUFtQjtpQkFDMUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBQaXBlKHtcbiAgbmFtZTogJ2FwcFNpZGViYXJOYXZJY29uJ1xufSlcbmV4cG9ydCBjbGFzcyBBcHBTaWRlYmFyTmF2SWNvblBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcblxuICB0cmFuc2Zvcm0oaXRlbTogYW55LCBhcmdzPzogYW55KTogYW55IHtcbiAgICBjb25zdCBjbGFzc2VzOiBhbnkgPSB7XG4gICAgICAnbmF2LWljb24nOiB0cnVlXG4gICAgfTtcbiAgICBjb25zdCBpY29uID0gaXRlbS5pY29uO1xuICAgIGNsYXNzZXNbaWNvbl0gPSAhIWl0ZW0uaWNvbjtcbiAgICByZXR1cm4gY2xhc3NlcztcbiAgfVxufVxuIl19
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../app-sidebar-nav.service";
|
|
4
|
-
export class AppSidebarNavItemClassPipe {
|
|
5
|
-
constructor(helper) {
|
|
6
|
-
this.helper = helper;
|
|
7
|
-
}
|
|
8
|
-
transform(item, ...args) {
|
|
9
|
-
const itemType = this.helper.itemType(item);
|
|
10
|
-
let itemClass;
|
|
11
|
-
if (['divider', 'title'].includes(itemType)) {
|
|
12
|
-
itemClass = `nav-${itemType}`;
|
|
13
|
-
}
|
|
14
|
-
else if (itemType === 'dropdown') {
|
|
15
|
-
itemClass = 'nav-item nav-dropdown';
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
itemClass = 'nav-item';
|
|
19
|
-
}
|
|
20
|
-
return item.class ? `${itemClass} ${item.class}` : itemClass;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
AppSidebarNavItemClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
AppSidebarNavItemClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
-
type: Pipe,
|
|
27
|
-
args: [{
|
|
28
|
-
name: 'appSidebarNavItemClass'
|
|
29
|
-
}]
|
|
30
|
-
}], ctorParameters: function () { return [{ type: i1.SidebarNavHelper }]; } });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../app-sidebar-nav.service";
|
|
4
|
+
export class AppSidebarNavItemClassPipe {
|
|
5
|
+
constructor(helper) {
|
|
6
|
+
this.helper = helper;
|
|
7
|
+
}
|
|
8
|
+
transform(item, ...args) {
|
|
9
|
+
const itemType = this.helper.itemType(item);
|
|
10
|
+
let itemClass;
|
|
11
|
+
if (['divider', 'title'].includes(itemType)) {
|
|
12
|
+
itemClass = `nav-${itemType}`;
|
|
13
|
+
}
|
|
14
|
+
else if (itemType === 'dropdown') {
|
|
15
|
+
itemClass = 'nav-item nav-dropdown';
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
itemClass = 'nav-item';
|
|
19
|
+
}
|
|
20
|
+
return item.class ? `${itemClass} ${item.class}` : itemClass;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
AppSidebarNavItemClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavItemClassPipe, deps: [{ token: i1.SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
24
|
+
AppSidebarNavItemClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavItemClassPipe, name: "appSidebarNavItemClass" });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavItemClassPipe, decorators: [{
|
|
26
|
+
type: Pipe,
|
|
27
|
+
args: [{
|
|
28
|
+
name: 'appSidebarNavItemClass'
|
|
29
|
+
}]
|
|
30
|
+
}], ctorParameters: function () { return [{ type: i1.SidebarNavHelper }]; } });
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLXNpZGViYXItbmF2LWl0ZW0tY2xhc3MucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmV1aS1hbmd1bGFyL3NyYy9saWIvc2lkZWJhci9hcHAtc2lkZWJhci1uYXYvYXBwLXNpZGViYXItbmF2LWl0ZW0tY2xhc3MucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7O0FBT3BELE1BQU0sT0FBTywwQkFBMEI7SUFFckMsWUFDUyxNQUF3QjtRQUF4QixXQUFNLEdBQU4sTUFBTSxDQUFrQjtJQUM5QixDQUFDO0lBRUosU0FBUyxDQUFDLElBQVMsRUFBRSxHQUFHLElBQVc7UUFDL0IsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUM7UUFD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4gICAgICBjb25zdCBpdGVtVHlwZSA9IHRoaXMuaGVscGVyLml0ZW1UeXBlKGl0ZW0pO1xuICAgICAgbGV0IGl0ZW1DbGFzcztcbiAgICAgIGlmIChbJ2RpdmlkZXInLCAndGl0bGUnXS5pbmNsdWRlcyhpdGVtVHlwZSkpIHtcbiAgICAgICAgaXRlbUNsYXNzID0gYG5hdi0ke2l0ZW1UeXBlfWA7XG4gICAgICB9IGVsc2UgaWYgKGl0ZW1UeXBlID09PSAnZHJvcGRvd24nKSB7XG4gICAgICAgIGl0ZW1DbGFzcyA9ICduYXYtaXRlbSBuYXYtZHJvcGRvd24nIDtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGl0ZW1DbGFzcyA9ICduYXYtaXRlbSc7XG4gICAgICB9XG4gICAgICByZXR1cm4gaXRlbS5jbGFzcyA/IGAke2l0ZW1DbGFzc30gJHtpdGVtLmNsYXNzfWAgOiBpdGVtQ2xhc3M7XG4gICAgfVxufVxuIl19
|
|
@@ -1,181 +1,173 @@
|
|
|
1
|
-
import { Component, Inject, Input } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { SidebarNavHelper } from '../app-sidebar-nav.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/router";
|
|
6
|
-
import * as i2 from "../app-sidebar-nav.service";
|
|
7
|
-
import * as i3 from "
|
|
8
|
-
import * as i4 from "
|
|
9
|
-
import * as i5 from "./app-sidebar-nav-
|
|
10
|
-
import * as i6 from "./app-sidebar-nav-link.component";
|
|
11
|
-
import * as i7 from "
|
|
12
|
-
import * as i8 from "../app-sidebar-nav.directive";
|
|
13
|
-
import * as i9 from "
|
|
14
|
-
import * as i10 from "./app-sidebar-nav-item-class.pipe";
|
|
15
|
-
import * as i11 from "./app-sidebar-nav-icon.pipe";
|
|
16
|
-
import * as i12 from "./app-sidebar-nav-badge.pipe";
|
|
17
|
-
export class AppSidebarNavItemsComponent {
|
|
18
|
-
constructor(document, renderer, router, helper) {
|
|
19
|
-
this.document = document;
|
|
20
|
-
this.renderer = renderer;
|
|
21
|
-
this.router = router;
|
|
22
|
-
this.helper = helper;
|
|
23
|
-
this._items = [];
|
|
24
|
-
}
|
|
25
|
-
set items(items) {
|
|
26
|
-
this._items = [...items];
|
|
27
|
-
}
|
|
28
|
-
get items() {
|
|
29
|
-
return this._items;
|
|
30
|
-
}
|
|
31
|
-
hideMobile() {
|
|
32
|
-
if (this.document.body.classList.contains('sidebar-show')) {
|
|
33
|
-
this.renderer.removeClass(this.document.body, 'sidebar-show');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
AppSidebarNavItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
AppSidebarNavItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
39
|
-
<ng-container *ngFor="let item of items">
|
|
40
|
-
<ng-container [ngSwitch]="helper.itemType(item)">
|
|
41
|
-
<app-sidebar-nav-dropdown
|
|
42
|
-
*ngSwitchCase="'dropdown'"
|
|
43
|
-
[item]="item"
|
|
44
|
-
[class.open]="helper.isActive(router, item)"
|
|
45
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
46
|
-
appNavDropdown
|
|
47
|
-
routerLinkActive="open">
|
|
48
|
-
</app-sidebar-nav-dropdown>
|
|
49
|
-
<app-sidebar-nav-divider
|
|
50
|
-
*ngSwitchCase="'divider'"
|
|
51
|
-
[item]="item"
|
|
52
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
53
|
-
[appHtmlAttr]="item.attributes">
|
|
54
|
-
</app-sidebar-nav-divider>
|
|
55
|
-
<app-sidebar-nav-title
|
|
56
|
-
*ngSwitchCase="'title'"
|
|
57
|
-
[item]="item"
|
|
58
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
59
|
-
[appHtmlAttr]="item.attributes">
|
|
60
|
-
</app-sidebar-nav-title>
|
|
61
|
-
<app-sidebar-nav-label
|
|
62
|
-
*ngSwitchCase="'label'"
|
|
63
|
-
[item]="item"
|
|
64
|
-
class="nav-item"
|
|
65
|
-
[ngClass]="item | appSidebarNavItemClass">
|
|
66
|
-
</app-sidebar-nav-label>
|
|
67
|
-
<ng-container
|
|
68
|
-
*ngSwitchCase="'empty'">
|
|
69
|
-
</ng-container>
|
|
70
|
-
<app-sidebar-nav-link
|
|
71
|
-
*ngSwitchDefault
|
|
72
|
-
[item]="item"
|
|
73
|
-
class="nav-item"
|
|
74
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
75
|
-
(linkClick)="hideMobile()"
|
|
76
|
-
>
|
|
77
|
-
</app-sidebar-nav-link>
|
|
78
|
-
</ng-container>
|
|
79
|
-
</ng-container>
|
|
80
|
-
`, isInline: true,
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
-
type: Component,
|
|
83
|
-
args: [{
|
|
84
|
-
selector: 'app-sidebar-nav-items, cui-sidebar-nav-items',
|
|
85
|
-
template: `
|
|
86
|
-
<ng-container *ngFor="let item of items">
|
|
87
|
-
<ng-container [ngSwitch]="helper.itemType(item)">
|
|
88
|
-
<app-sidebar-nav-dropdown
|
|
89
|
-
*ngSwitchCase="'dropdown'"
|
|
90
|
-
[item]="item"
|
|
91
|
-
[class.open]="helper.isActive(router, item)"
|
|
92
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
93
|
-
appNavDropdown
|
|
94
|
-
routerLinkActive="open">
|
|
95
|
-
</app-sidebar-nav-dropdown>
|
|
96
|
-
<app-sidebar-nav-divider
|
|
97
|
-
*ngSwitchCase="'divider'"
|
|
98
|
-
[item]="item"
|
|
99
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
100
|
-
[appHtmlAttr]="item.attributes">
|
|
101
|
-
</app-sidebar-nav-divider>
|
|
102
|
-
<app-sidebar-nav-title
|
|
103
|
-
*ngSwitchCase="'title'"
|
|
104
|
-
[item]="item"
|
|
105
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
106
|
-
[appHtmlAttr]="item.attributes">
|
|
107
|
-
</app-sidebar-nav-title>
|
|
108
|
-
<app-sidebar-nav-label
|
|
109
|
-
*ngSwitchCase="'label'"
|
|
110
|
-
[item]="item"
|
|
111
|
-
class="nav-item"
|
|
112
|
-
[ngClass]="item | appSidebarNavItemClass">
|
|
113
|
-
</app-sidebar-nav-label>
|
|
114
|
-
<ng-container
|
|
115
|
-
*ngSwitchCase="'empty'">
|
|
116
|
-
</ng-container>
|
|
117
|
-
<app-sidebar-nav-link
|
|
118
|
-
*ngSwitchDefault
|
|
119
|
-
[item]="item"
|
|
120
|
-
class="nav-item"
|
|
121
|
-
[ngClass]="item | appSidebarNavItemClass"
|
|
122
|
-
(linkClick)="hideMobile()"
|
|
123
|
-
>
|
|
124
|
-
</app-sidebar-nav-link>
|
|
125
|
-
</ng-container>
|
|
126
|
-
</ng-container>
|
|
127
|
-
`
|
|
128
|
-
}]
|
|
129
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
130
|
-
type: Inject,
|
|
131
|
-
args: [DOCUMENT]
|
|
132
|
-
}] }, { type: i0.Renderer2 }, { type: i1.Router }, { type: i2.SidebarNavHelper }]; }, propDecorators: { items: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}] } });
|
|
135
|
-
export class AppSidebarNavDropdownComponent {
|
|
136
|
-
constructor(helper) {
|
|
137
|
-
this.helper = helper;
|
|
138
|
-
this.item = {};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
AppSidebarNavDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
142
|
-
AppSidebarNavDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
143
|
-
<a class="nav-link nav-dropdown-toggle"
|
|
144
|
-
appNavDropdownToggle
|
|
145
|
-
[appHtmlAttr]="item.attributes">
|
|
146
|
-
<i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
|
|
147
|
-
<ng-container>{{item.name}}</ng-container>
|
|
148
|
-
<span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge?.text }}</span>
|
|
149
|
-
</a>
|
|
150
|
-
<app-sidebar-nav-items
|
|
151
|
-
class="nav-dropdown-items"
|
|
152
|
-
[items]="item.children ?? []">
|
|
153
|
-
</app-sidebar-nav-items>
|
|
154
|
-
`, isInline: true, styles: [".nav-dropdown-toggle{cursor:pointer}\n", ".nav-dropdown-items{display:block}\n"],
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
156
|
-
type: Component,
|
|
157
|
-
args: [{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
'.nav-dropdown-items { display: block; }'
|
|
175
|
-
],
|
|
176
|
-
providers: [SidebarNavHelper]
|
|
177
|
-
}]
|
|
178
|
-
}], ctorParameters: function () { return [{ type: i2.SidebarNavHelper }]; }, propDecorators: { item: [{
|
|
179
|
-
type: Input
|
|
180
|
-
}] } });
|
|
181
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLXNpZGViYXItbmF2LWl0ZW1zLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmV1aS9hbmd1bGFyL3NyYy9saWIvc2lkZWJhci9hcHAtc2lkZWJhci1uYXYvYXBwLXNpZGViYXItbmF2LWl0ZW1zLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1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WRlYmFyTmF2RHJvcGRvd25Db21wb25lbnQge1xyXG4gIEBJbnB1dCgpIGl0ZW06IElOYXZEYXRhID0ge307XHJcblxyXG4gIGNvbnN0cnVjdG9yKFxyXG4gICAgcHVibGljIGhlbHBlcjogU2lkZWJhck5hdkhlbHBlclxyXG4gICkgeyB9XHJcbn1cclxuXHJcbiJdfQ==
|
|
1
|
+
import { Component, Inject, Input } from '@angular/core';
|
|
2
|
+
import { DOCUMENT } from '@angular/common';
|
|
3
|
+
import { SidebarNavHelper } from '../app-sidebar-nav.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/router";
|
|
6
|
+
import * as i2 from "../app-sidebar-nav.service";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
import * as i4 from "../../shared/layout/layout.directive";
|
|
9
|
+
import * as i5 from "./app-sidebar-nav-divider.component";
|
|
10
|
+
import * as i6 from "./app-sidebar-nav-link.component";
|
|
11
|
+
import * as i7 from "./app-sidebar-nav-title.component";
|
|
12
|
+
import * as i8 from "../app-sidebar-nav.directive";
|
|
13
|
+
import * as i9 from "./app-sidebar-nav-label.component";
|
|
14
|
+
import * as i10 from "./app-sidebar-nav-item-class.pipe";
|
|
15
|
+
import * as i11 from "./app-sidebar-nav-icon.pipe";
|
|
16
|
+
import * as i12 from "./app-sidebar-nav-badge.pipe";
|
|
17
|
+
export class AppSidebarNavItemsComponent {
|
|
18
|
+
constructor(document, renderer, router, helper) {
|
|
19
|
+
this.document = document;
|
|
20
|
+
this.renderer = renderer;
|
|
21
|
+
this.router = router;
|
|
22
|
+
this.helper = helper;
|
|
23
|
+
this._items = [];
|
|
24
|
+
}
|
|
25
|
+
set items(items) {
|
|
26
|
+
this._items = [...items];
|
|
27
|
+
}
|
|
28
|
+
get items() {
|
|
29
|
+
return this._items;
|
|
30
|
+
}
|
|
31
|
+
hideMobile() {
|
|
32
|
+
if (this.document.body.classList.contains('sidebar-show')) {
|
|
33
|
+
this.renderer.removeClass(this.document.body, 'sidebar-show');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
AppSidebarNavItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavItemsComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: i1.Router }, { token: i2.SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
AppSidebarNavItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: { items: "items" }, ngImport: i0, template: `
|
|
39
|
+
<ng-container *ngFor="let item of items">
|
|
40
|
+
<ng-container [ngSwitch]="helper.itemType(item)">
|
|
41
|
+
<app-sidebar-nav-dropdown
|
|
42
|
+
*ngSwitchCase="'dropdown'"
|
|
43
|
+
[item]="item"
|
|
44
|
+
[class.open]="helper.isActive(router, item)"
|
|
45
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
46
|
+
appNavDropdown
|
|
47
|
+
routerLinkActive="open">
|
|
48
|
+
</app-sidebar-nav-dropdown>
|
|
49
|
+
<app-sidebar-nav-divider
|
|
50
|
+
*ngSwitchCase="'divider'"
|
|
51
|
+
[item]="item"
|
|
52
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
53
|
+
[appHtmlAttr]="item.attributes">
|
|
54
|
+
</app-sidebar-nav-divider>
|
|
55
|
+
<app-sidebar-nav-title
|
|
56
|
+
*ngSwitchCase="'title'"
|
|
57
|
+
[item]="item"
|
|
58
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
59
|
+
[appHtmlAttr]="item.attributes">
|
|
60
|
+
</app-sidebar-nav-title>
|
|
61
|
+
<app-sidebar-nav-label
|
|
62
|
+
*ngSwitchCase="'label'"
|
|
63
|
+
[item]="item"
|
|
64
|
+
class="nav-item"
|
|
65
|
+
[ngClass]="item | appSidebarNavItemClass">
|
|
66
|
+
</app-sidebar-nav-label>
|
|
67
|
+
<ng-container
|
|
68
|
+
*ngSwitchCase="'empty'">
|
|
69
|
+
</ng-container>
|
|
70
|
+
<app-sidebar-nav-link
|
|
71
|
+
*ngSwitchDefault
|
|
72
|
+
[item]="item"
|
|
73
|
+
class="nav-item"
|
|
74
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
75
|
+
(linkClick)="hideMobile()"
|
|
76
|
+
>
|
|
77
|
+
</app-sidebar-nav-link>
|
|
78
|
+
</ng-container>
|
|
79
|
+
</ng-container>
|
|
80
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i3.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return i3.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return i3.NgSwitch; }), selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i0.forwardRef(function () { return i3.NgSwitchCase; }), selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i0.forwardRef(function () { return i3.NgSwitchDefault; }), selector: "[ngSwitchDefault]" }, { kind: "directive", type: i0.forwardRef(function () { return i1.RouterLinkActive; }), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i0.forwardRef(function () { return i4.HtmlAttributesDirective; }), selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { kind: "component", type: i0.forwardRef(function () { return i5.AppSidebarNavDividerComponent; }), selector: "app-sidebar-nav-divider, cui-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(function () { return AppSidebarNavDropdownComponent; }), selector: "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(function () { return i6.AppSidebarNavLinkComponent; }), selector: "app-sidebar-nav-link, cui-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: i0.forwardRef(function () { return i7.AppSidebarNavTitleComponent; }), selector: "app-sidebar-nav-title, cui-sidebar-nav-title", inputs: ["item"] }, { kind: "directive", type: i0.forwardRef(function () { return i8.NavDropdownDirective; }), selector: "[appNavDropdown]" }, { kind: "component", type: i0.forwardRef(function () { return i9.AppSidebarNavLabelComponent; }), selector: "app-sidebar-nav-label, cui-sidebar-nav-label", inputs: ["item"] }, { kind: "pipe", type: i0.forwardRef(function () { return i10.AppSidebarNavItemClassPipe; }), name: "appSidebarNavItemClass" }] });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavItemsComponent, decorators: [{
|
|
82
|
+
type: Component,
|
|
83
|
+
args: [{
|
|
84
|
+
selector: 'app-sidebar-nav-items, cui-sidebar-nav-items',
|
|
85
|
+
template: `
|
|
86
|
+
<ng-container *ngFor="let item of items">
|
|
87
|
+
<ng-container [ngSwitch]="helper.itemType(item)">
|
|
88
|
+
<app-sidebar-nav-dropdown
|
|
89
|
+
*ngSwitchCase="'dropdown'"
|
|
90
|
+
[item]="item"
|
|
91
|
+
[class.open]="helper.isActive(router, item)"
|
|
92
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
93
|
+
appNavDropdown
|
|
94
|
+
routerLinkActive="open">
|
|
95
|
+
</app-sidebar-nav-dropdown>
|
|
96
|
+
<app-sidebar-nav-divider
|
|
97
|
+
*ngSwitchCase="'divider'"
|
|
98
|
+
[item]="item"
|
|
99
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
100
|
+
[appHtmlAttr]="item.attributes">
|
|
101
|
+
</app-sidebar-nav-divider>
|
|
102
|
+
<app-sidebar-nav-title
|
|
103
|
+
*ngSwitchCase="'title'"
|
|
104
|
+
[item]="item"
|
|
105
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
106
|
+
[appHtmlAttr]="item.attributes">
|
|
107
|
+
</app-sidebar-nav-title>
|
|
108
|
+
<app-sidebar-nav-label
|
|
109
|
+
*ngSwitchCase="'label'"
|
|
110
|
+
[item]="item"
|
|
111
|
+
class="nav-item"
|
|
112
|
+
[ngClass]="item | appSidebarNavItemClass">
|
|
113
|
+
</app-sidebar-nav-label>
|
|
114
|
+
<ng-container
|
|
115
|
+
*ngSwitchCase="'empty'">
|
|
116
|
+
</ng-container>
|
|
117
|
+
<app-sidebar-nav-link
|
|
118
|
+
*ngSwitchDefault
|
|
119
|
+
[item]="item"
|
|
120
|
+
class="nav-item"
|
|
121
|
+
[ngClass]="item | appSidebarNavItemClass"
|
|
122
|
+
(linkClick)="hideMobile()"
|
|
123
|
+
>
|
|
124
|
+
</app-sidebar-nav-link>
|
|
125
|
+
</ng-container>
|
|
126
|
+
</ng-container>
|
|
127
|
+
`
|
|
128
|
+
}]
|
|
129
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
130
|
+
type: Inject,
|
|
131
|
+
args: [DOCUMENT]
|
|
132
|
+
}] }, { type: i0.Renderer2 }, { type: i1.Router }, { type: i2.SidebarNavHelper }]; }, propDecorators: { items: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}] } });
|
|
135
|
+
export class AppSidebarNavDropdownComponent {
|
|
136
|
+
constructor(helper) {
|
|
137
|
+
this.helper = helper;
|
|
138
|
+
this.item = {};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
AppSidebarNavDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavDropdownComponent, deps: [{ token: i2.SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
+
AppSidebarNavDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AppSidebarNavDropdownComponent, selector: "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", inputs: { item: "item" }, providers: [SidebarNavHelper], ngImport: i0, template: `
|
|
143
|
+
<a class="nav-link nav-dropdown-toggle"
|
|
144
|
+
appNavDropdownToggle
|
|
145
|
+
[appHtmlAttr]="item.attributes">
|
|
146
|
+
<i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
|
|
147
|
+
<ng-container>{{item.name}}</ng-container>
|
|
148
|
+
<span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge?.text }}</span>
|
|
149
|
+
</a>
|
|
150
|
+
<app-sidebar-nav-items
|
|
151
|
+
class="nav-dropdown-items"
|
|
152
|
+
[items]="item.children ?? []">
|
|
153
|
+
</app-sidebar-nav-items>
|
|
154
|
+
`, isInline: true, styles: [".nav-dropdown-toggle{cursor:pointer}\n", ".nav-dropdown-items{display:block}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { kind: "component", type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: ["items"] }, { kind: "directive", type: i8.NavDropdownToggleDirective, selector: "[appNavDropdownToggle]" }, { kind: "pipe", type: i11.AppSidebarNavIconPipe, name: "appSidebarNavIcon" }, { kind: "pipe", type: i12.AppSidebarNavBadgePipe, name: "appSidebarNavBadge" }] });
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppSidebarNavDropdownComponent, decorators: [{
|
|
156
|
+
type: Component,
|
|
157
|
+
args: [{ selector: 'app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown', template: `
|
|
158
|
+
<a class="nav-link nav-dropdown-toggle"
|
|
159
|
+
appNavDropdownToggle
|
|
160
|
+
[appHtmlAttr]="item.attributes">
|
|
161
|
+
<i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
|
|
162
|
+
<ng-container>{{item.name}}</ng-container>
|
|
163
|
+
<span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge?.text }}</span>
|
|
164
|
+
</a>
|
|
165
|
+
<app-sidebar-nav-items
|
|
166
|
+
class="nav-dropdown-items"
|
|
167
|
+
[items]="item.children ?? []">
|
|
168
|
+
</app-sidebar-nav-items>
|
|
169
|
+
`, providers: [SidebarNavHelper], styles: [".nav-dropdown-toggle{cursor:pointer}\n", ".nav-dropdown-items{display:block}\n"] }]
|
|
170
|
+
}], ctorParameters: function () { return [{ type: i2.SidebarNavHelper }]; }, propDecorators: { item: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}] } });
|
|
173
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLXNpZGViYXItbmF2LWl0ZW1zLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmV1aS1hbmd1bGFyL3NyYy9saWIvc2lkZWJhci9hcHAtc2lkZWJhci1uYXYvYXBwLXNpZGViYXItbmF2LWl0ZW1zLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQVksTUFBTSxlQUFlLENBQUM7QUFFbEUsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRXpDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLDRCQUE0QixDQUFDOzs7Ozs7Ozs7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